4 # description: Vsys file descriptor abritrator startup.
6 # Sapan Bhatia <sapanb@cs.princeton.edu>
13 # Source function library.
14 . /etc/rc.d/init.d/functions
16 if [ -f /etc/sysconfig/$name ]; then
17 . /etc/sysconfig/$name
20 backend=${BACKEND-/vsys}
22 conf=${CONF-/etc/$name.conf}
23 pidfile=${PIDFILE-/var/run/$name.pid}
24 lockfile=${LOCKFILE-/var/lock/subsys/$name}
27 vsys=${VSYS- "/usr/bin/vsys -failsafe -backend $backend -conffile $conf -daemon"}
31 echo -n "Starting $name:"
32 if [ ! -d $backend ]; then mkdir $backend; fi
33 daemon --check=vsys $vsys
36 [ $RETVAL -eq 0 ] && touch ${lockfile}
39 echo -n "Stopping $name:"
41 #killproc $name - Why were there 2 instances of this? :-|
44 [ $RETVAL -eq 0 ] && rm -f ${lockfile} ${pidfile}
52 echo $"Usage: $0 {start|stop|restart}"