]>
Commit | Line | Data |
---|---|---|
e32c74ca JR |
1 | #!/bin/sh |
2 | # | |
1354d787 JR |
3 | # chkconfig: 345 72 28 |
4 | # description: Runs the automount daemon that mounts devices and NFS hosts \ | |
5 | # on demand. | |
6 | # processname: amd | |
7 | # config: /etc/amd.conf | |
e32c74ca JR |
8 | |
9 | # Source function library. | |
10 | . /etc/rc.d/init.d/functions | |
11 | ||
1354d787 | 12 | # Demon specified configuration. |
e32c74ca JR |
13 | . /etc/sysconfig/amd |
14 | ||
15 | # See how we were called. | |
16 | case "$1" in | |
17 | start) | |
1354d787 | 18 | msg_starting amd |
e32c74ca | 19 | daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS |
1354d787 | 20 | touch /var/lock/subsys/amd |
e32c74ca JR |
21 | ;; |
22 | stop) | |
1354d787 | 23 | msg_stopping amd |
e32c74ca JR |
24 | killproc amd |
25 | rm -f /var/lock/subsys/amd | |
e32c74ca JR |
26 | ;; |
27 | status) | |
28 | status amd | |
29 | ;; | |
30 | restart) | |
31 | $0 stop | |
32 | $0 start | |
33 | ;; | |
34 | reload) | |
35 | killall -HUP amd | |
36 | ;; | |
37 | *) | |
3aa0d2a6 | 38 | msg_usage "$0 {start|stop|status|restart|reload}" |
e32c74ca JR |
39 | exit 1 |
40 | esac | |
41 | ||
42 | exit 0 | |
43 |