]> git.pld-linux.org Git - packages/am-utils.git/blob - am-utils.init
4087184e75212c8d01d08c5a351fbf11 Lib48x.gif
[packages/am-utils.git] / am-utils.init
1 #!/bin/sh
2 #
3 # Version: 1.2
4 #
5 # chkconfig: 345 72 28
6 # description: Runs the automount daemon that mounts devices and NFS hosts \
7 #              on demand.
8 # processname: amd
9 # config: /etc/amd.conf
10 #
11
12 # Source function library.
13 . /etc/rc.d/init.d/functions
14
15 . /etc/sysconfig/amd
16
17 # See how we were called.
18 case "$1" in
19   start)
20         echo -n "Starting amd: "
21         touch /var/lock/subsys/amd
22         daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
23         echo
24         
25         ;;
26   stop)
27         echo -n "Shutting down amd: "
28         killproc amd
29         rm -f /var/lock/subsys/amd
30         echo
31         ;;
32   status)
33         status amd
34         ;;
35   restart)
36         $0 stop
37         $0 start
38         ;;
39   reload)
40         killall -HUP amd
41         ;;
42   *)
43         echo "Usage: amd {start|stop|status|restart|reload}"
44         exit 1
45 esac
46
47 exit 0
48
This page took 0.08727 seconds and 4 git commands to generate.