Code Review
/
packages
/
trusty
/
cirros-testvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
Add ethtool package to cirros image
[packages/trusty/cirros-testvm.git]
/
cirros-testvm
/
src-cirros
/
buildroot-2015.05
/
package
/
rpcbind
/
S30rpcbind
1
#!/bin/sh
2
#
3
# Starts rpcbind.
4
#
5
6
start() {
7
echo -n "Starting rpcbind: "
8
umask 077
9
start-stop-daemon -S -q -p /var/run/rpcbind.pid --exec /usr/bin/rpcbind
10
echo "OK"
11
}
12
stop() {
13
echo -n "Stopping rpcbind daemon: "
14
start-stop-daemon -K -q -p /var/run/rpcbind.pid
15
echo "OK"
16
}
17
restart() {
18
stop
19
start
20
}
21
22
case "$1" in
23
start)
24
start
25
;;
26
stop)
27
stop
28
;;
29
restart|reload)
30
restart
31
;;
32
*)
33
echo "Usage: $0 {start|stop|restart}"
34
exit 1
35
esac
36
37
exit $?
38