Deleted Added
full compact
ctl-amd.in (42629) ctl-amd.in (51292)
1#!/bin/sh
2# control starting, stopping, or restarting amd.
3# usage: ctl-amd [start | stop | restart]
4#
5# Package: am-utils-6.0
6# Author: Erez Zadok <ezk@cs.columbia.edu>
7#
1#!/bin/sh
2# control starting, stopping, or restarting amd.
3# usage: ctl-amd [start | stop | restart]
4#
5# Package: am-utils-6.0
6# Author: Erez Zadok <ezk@cs.columbia.edu>
7#
8# chkconfig: 345 72 8
9# description: amd is the Berkeley AutoMount Daemon, used for \
10# automatic filesystem mounting
8# chkconfig: - 72 28
9# description: Runs the automount daemon that mounts devices and NFS hosts \
10# on demand.
11# processname: amd
12# config: /etc/amd.conf
13#
11
12# set path
13prefix=@prefix@
14exec_prefix=@exec_prefix@
15PATH=@sbindir@:@bindir@:/usr/ucb:/usr/bin:/bin:${PATH}
16export PATH
17
18# kill the named process(es)

--- 83 unchanged lines hidden (view full) ---

102'restart')
103 # kill amd, wait for it to die, then restart
104 ctl-amd stop
105 if [ $? != 0 ]
106 then
107 echo "NOT restarting amd!"
108 else
109 echo "Restarting amd..."
14
15# set path
16prefix=@prefix@
17exec_prefix=@exec_prefix@
18PATH=@sbindir@:@bindir@:/usr/ucb:/usr/bin:/bin:${PATH}
19export PATH
20
21# kill the named process(es)

--- 83 unchanged lines hidden (view full) ---

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!"
111 else
112 echo "Restarting amd..."
113 sleep 1
110 ctl-amd start
111 fi
112 ;;
113
114*)
115 echo "Usage: @sbindir@/ctl-amd [ start | stop | restart ]"
116 ;;
117esac
114 ctl-amd start
115 fi
116 ;;
117
118*)
119 echo "Usage: @sbindir@/ctl-amd [ start | stop | restart ]"
120 ;;
121esac