]>
Commit | Line | Data |
---|---|---|
e93a0b06 JS |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/rpcbind | |
4 | # | |
5 | # Description : rpcbind init script | |
6 | # | |
7 | # Authors : Jonatan Schlag jonatan.schlag@ipfire.org | |
8 | # | |
9 | # Version : 01.00 | |
10 | # | |
11 | # Notes : | |
12 | # | |
13 | ######################################################################## | |
14 | ||
15 | . /etc/sysconfig/rc | |
16 | . $rc_functions | |
17 | ||
18 | case "$1" in | |
19 | start) | |
20 | boot_mesg "Starting rpcbind" | |
af8964d2 | 21 | loadproc /usr/sbin/rpcbind |
e93a0b06 JS |
22 | ;; |
23 | ||
24 | stop) | |
25 | boot_mesg "Stopping rpcbind" | |
af8964d2 | 26 | killproc /usr/sbin/rpcbind |
e93a0b06 JS |
27 | ;; |
28 | ||
29 | restart) | |
30 | $0 stop | |
31 | sleep 1 | |
32 | $0 start | |
33 | ;; | |
34 | ||
35 | status) | |
af8964d2 | 36 | statusproc /usr/sbin/rpcbind |
e93a0b06 JS |
37 | ;; |
38 | ||
39 | *) | |
40 | echo "Usage: $0 {start|stop|restart|status}" | |
41 | exit 1 | |
42 | ;; | |
43 | ||
44 | esac | |
45 | ||
46 | # End $rc_base/init.d/rpcbind |