]> git.pld-linux.org Git - packages/am-utils.git/blob - am-utils.init
- fix in %preun.
[packages/am-utils.git] / am-utils.init
1 #!/bin/sh
2 #
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
8
9 # Source function library.
10 . /etc/rc.d/init.d/functions
11
12 # Demon specified configuration.
13 . /etc/sysconfig/amd
14
15 # See how we were called.
16 case "$1" in
17   start)
18         msg_starting amd
19         daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
20         touch /var/lock/subsys/amd
21         ;;
22   stop)
23         msg_stopping amd
24         killproc amd
25         rm -f /var/lock/subsys/amd
26         ;;
27   status)
28         status amd
29         ;;
30   restart)
31         $0 stop
32         $0 start
33         ;;
34   reload)
35         killall -HUP amd
36         ;;
37   *)
38         msg_usage "$0 {start|stop|status|restart|reload}"
39         exit 1
40 esac
41
42 exit 0
43
This page took 0.041312 seconds and 3 git commands to generate.