Home | History | Annotate | Download | only in scripts

Lines Matching refs:amd

2 # control starting, stopping, or restarting amd.
3 # usage: ctl-amd [start|stop|status|restart|condrestart|reload]
11 # processname: amd
12 # config: /etc/amd.conf
67 # search for amd.conf file
68 CF_FILE="@sysconfdir@/amd.conf"
70 if [ -f /etc/amd.conf ]
72 CF_FILE="/etc/amd.conf"
74 if [ -f @sysconfdir@/amd.conf ]
76 CF_FILE="@sysconfdir@/amd.conf"
78 if [ -f /etc/local/amd.conf ]
80 CF_FILE="/etc/local/amd.conf"
83 # if have the directory /tftpboot/.amd, then add a tag to include it
85 if [ -d /tftpboot/.amd ]
92 # Start the amd automounter.
93 if [ -x @sbindir@/amd ]
95 # do not specify full path of amd so killproc() works
96 amd -F $CF_FILE $CF_TAG
97 test -x /var/lock/subsys && touch /var/lock/subsys/amd
102 # prepend space to program name to ensure only amd process dies
103 echo "killing amd..."
104 killproc " amd"
106 rm -f /var/lock/subsys/amd
110 # kill amd, wait for it to die, then restart
111 ctl-amd stop
114 echo "NOT restarting amd!"
116 echo "Restarting amd..."
118 ctl-amd start
123 if [ -f /var/lock/subsys/amd ]; then
124 ctl-amd stop
125 ctl-amd start
138 echo "amd (pid $pid) is running..."
140 echo "amd is stopped"