3 # skeleton Example file to build /etc/init.d scripts.
5 # Version: @(#) /etc/init.d/skeleton 1.01 26-Oct-1993
7 # Author: Miquel van Smoorenburg, <miquels@drinkel.nl.mugnet.org>
10 # chkconfig: 345 97 01
11 # description: The Coda cache manager.
16 PATH
=/sbin
:/usr
/sbin
:/usr
/local
/sbin
:$PATH
20 pid_file
=/usr
/coda
/venus.cache
/pid
23 # overridden from the venus.conf
24 [ -f ${exec_prefix}/sbin
/codaconfedit
] && .
`${exec_prefix}/sbin/codaconfedit venus.conf`
26 [ -f ${exec_prefix}/sbin
/venus
] ||
exit 0
29 if [ "`echo -n`" ] ; then
37 # See how we were called.
40 echon
"Starting Coda client components:"
41 if [ -f $pid_file ]; then
42 echo "$pid_file exists, venus already running?."
44 [ -d /var
/lock
/subsys
] && touch /var
/lock
/subsys
/venus.init
48 [ -x /sbin
/udevsettle
] && /sbin
/udevsettle ||
sleep 5
50 ${exec_prefix}/sbin
/vutil
--swaplogs
52 ${exec_prefix}/sbin
/venus
> /dev
/null
2>&1
56 echon
"Shutting down venus: "
57 if [ -f $pid_file ]; then
58 kill -TERM `cat $pid_file`
62 [ -d /var
/lock
/subsys
] && rm -f /var
/lock
/subsys
/venus.init
66 echon
"Killing venus: "
67 if [ -f $pid_file ]; then
68 kill -9 `cat $pid_file`
75 echo "$1 not available"
78 echo "Usage: $0 {start|stop|hardstop}"