4 # description: Runs the automount daemon that mounts devices and NFS hosts \
7 # config: /etc/amd.conf
9 # Source function library.
10 . /etc/rc.d/init.d/functions
12 # Demon specified configuration.
15 # See how we were called.
18 # Check if the service is already running?
19 if [ ! -f /var/lock/subsys/amd ]; then
21 daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
22 touch /var/lock/subsys/amd
24 msg_already_running Amavisd
29 if [ -f /var/lock/subsys/amd ]; then
32 rm -f /var/lock/subsys/amd
34 msg_not_running Amavisd
49 msg_usage "$0 {start|stop|status|restart|reload}"