From: Jan Rękorajski Date: Tue, 28 Mar 2000 12:59:55 +0000 (+0000) Subject: - updated to rc-scripts 0.2.0 X-Git-Tag: am-utils-6_0_7-2~20 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;ds=sidebyside;h=1354d787270d90ecd1e32163307ac87874751bda;p=packages%2Fam-utils.git - updated to rc-scripts 0.2.0 Changed files: am-utils.init -> 1.2 --- diff --git a/am-utils.init b/am-utils.init index f2f59db..ce8db8d 100644 --- a/am-utils.init +++ b/am-utils.init @@ -1,33 +1,28 @@ #!/bin/sh # -# Version: 1.2 -# -# chkconfig: 345 72 28 -# description: Runs the automount daemon that mounts devices and NFS hosts \ -# on demand. -# processname: amd -# config: /etc/amd.conf -# +# chkconfig: 345 72 28 +# description: Runs the automount daemon that mounts devices and NFS hosts \ +# on demand. +# processname: amd +# config: /etc/amd.conf # Source function library. . /etc/rc.d/init.d/functions +# Demon specified configuration. . /etc/sysconfig/amd # See how we were called. case "$1" in start) - echo -n "Starting amd: " - touch /var/lock/subsys/amd + msg_starting amd daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS - echo - + touch /var/lock/subsys/amd ;; stop) - echo -n "Shutting down amd: " + msg_stopping amd killproc amd rm -f /var/lock/subsys/amd - echo ;; status) status amd @@ -40,7 +35,7 @@ case "$1" in killall -HUP amd ;; *) - echo "Usage: amd {start|stop|status|restart|reload}" + msg_Usage "$0 {start|stop|status|restart|reload}" exit 1 esac