ctl-amd.in (82794) | ctl-amd.in (119679) |
---|---|
1#!/bin/sh 2# control starting, stopping, or restarting amd. 3# usage: ctl-amd [start|stop|status|restart|condrestart|reload] 4# 5# Package: am-utils-6.0 6# Author: Erez Zadok <ezk@cs.columbia.edu> 7# 8# chkconfig: - 72 28 --- 76 unchanged lines hidden (view full) --- 85 86case "$1" in 87'start') 88 # Start the amd automounter. 89 if [ -x @sbindir@/amd ] 90 then 91 # do not specify full path of amd so killproc() works 92 amd -F $CF_FILE $CF_TAG | 1#!/bin/sh 2# control starting, stopping, or restarting amd. 3# usage: ctl-amd [start|stop|status|restart|condrestart|reload] 4# 5# Package: am-utils-6.0 6# Author: Erez Zadok <ezk@cs.columbia.edu> 7# 8# chkconfig: - 72 28 --- 76 unchanged lines hidden (view full) --- 85 86case "$1" in 87'start') 88 # Start the amd automounter. 89 if [ -x @sbindir@/amd ] 90 then 91 # do not specify full path of amd so killproc() works 92 amd -F $CF_FILE $CF_TAG |
93 test -x /var/lock/subsys && touch /var/lock/subsys/amd |
|
93 fi 94 ;; 95 96'stop') 97 # prepend space to program name to ensure only amd process dies 98 echo "killing amd..." 99 killproc " amd" 100 wait4amd2die | 94 fi 95 ;; 96 97'stop') 98 # prepend space to program name to ensure only amd process dies 99 echo "killing amd..." 100 killproc " amd" 101 wait4amd2die |
102 test -f /var/lock/subsys/amd && rm -f /var/lock/subsys/amd |
|
101 ;; 102 103'restart') 104 # kill amd, wait for it to die, then restart 105 ctl-amd stop 106 if [ $? != 0 ] 107 then 108 echo "NOT restarting amd!" --- 41 unchanged lines hidden --- | 103 ;; 104 105'restart') 106 # kill amd, wait for it to die, then restart 107 ctl-amd stop 108 if [ $? != 0 ] 109 then 110 echo "NOT restarting amd!" --- 41 unchanged lines hidden --- |