#!/bin/sh # # vsd Start FreeVSD virtual servers # # Author: Nick Burrett, # # chkconfig: 3 95 10 # description: FreeVSD creates, deletes and mananges virtual servers # processname: vsd # config: /etc/vsd.conf # config: /etc/freevsd.conf # # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = "no" ] && exit 0 [ -f /usr/sbin/vsboot ] || exit 0 # See how we were called. case "$1" in start) # Start everything /usr/sbin/vsboot --delay=2 --freq=5 --start $2 echo touch /var/lock/subsys/vsd ;; stop) # Stop daemons. /usr/sbin/vsboot --stop $2 echo rm -f /var/lock/subsys/vsd ;; restart) /usr/sbin/vsboot --restart --delay=2 --freq=5 $2 ;; status) status vsd ;; *) echo "Usage: vsd {start|stop|restart|status}" exit 1 esac exit 0