3 # description: The rebootmgr service is monitoring all virtual servers \
4 # and restart them as need. Virtual servers are using \
5 # the /sbin/vreboot command to talk with the reboot manager
6 # processname: rebootmgr
7 # config: /etc/vservers
9 DEFAULT_VSERVERDIR=/vservers
11 PIDFILE=/var/run/rebootmgr.pid
12 # See how we were called.
15 echo "Starting the reboot manager"
20 serv=`basename $serv .conf`
21 if [ -d $DEFAULT_VSERVERDIR/$serv ] ; then
22 VSERVERS="$VSERVERS $serv"
25 $USR_SBIN/rebootmgr --pidfile $PIDFILE $VSERVERS &
26 touch /var/lock/subsys/rebootmgr
29 echo "Stopping the reboot manager"
31 rm -f /var/lock/subsys/rebootmgr
42 if [ -f $PIDFILE ] ; then
43 if kill -0 `cat $PIDFILE`
45 echo rebootmgr is running
47 echo rebootmgr is NOT running
52 echo "Usage: rebootmgr {start|stop|restart|reload|status}"