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 if [ "$1" != "stop" ]; then
16 check_portmapper || { nls "Error: portmap isn't running" && exit 0; }
20 # See how we were called.
23 # Check if the service is already running?
24 if [ ! -f /var/lock/subsys/amd ]; then
26 daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
28 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/amd
30 msg_already_running Amavisd
34 if [ -f /var/lock/subsys/amd ]; then
37 rm -f /var/lock/subsys/amd
39 msg_not_running Amavisd
52 if [ -f /var/lock/subsys/amd ]; then
57 msg_not_running Amavisd >&2
62 msg_usage "$0 {start|stop|restart|reload|force-reload|status}"