Changed files:
am-utils.init -> 1.2
-# 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
# Source function library.
. /etc/rc.d/init.d/functions
+# Demon specified configuration.
. /etc/sysconfig/amd
# See how we were called.
case "$1" in
start)
. /etc/sysconfig/amd
# See how we were called.
case "$1" in
start)
- echo -n "Starting amd: "
- touch /var/lock/subsys/amd
daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
daemon /usr/sbin/amd -a $ADIR -l syslog $AMDOPTS -c 1000 $MOUNTPTS
+ touch /var/lock/subsys/amd
- echo -n "Shutting down amd: "
killproc amd
rm -f /var/lock/subsys/amd
killproc amd
rm -f /var/lock/subsys/amd
- echo "Usage: amd {start|stop|status|restart|reload}"
+ msg_Usage "$0 {start|stop|status|restart|reload}"