X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sysv%2Fvip6-autod;fp=sysv%2Fvip6-autod;h=0000000000000000000000000000000000000000;hb=db5ef3f969fc6ad34aeb5903e44d0049b2e50791;hp=6f91016cc2b151792c1066f554ae378a22684a2a;hpb=95e2774070e989fe9cf9f48dae5fa054e55e2a3e;p=util-vserver.git diff --git a/sysv/vip6-autod b/sysv/vip6-autod deleted file mode 100755 index 6f91016..0000000 --- a/sysv/vip6-autod +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# -# vip6-autod assigns auto-discovered IPv6 addresses to guests -# -# chkconfig: 2345 99 01 -# description: starts vip6-autod - -: ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} -test -e "$UTIL_VSERVER_VARS" || { - echo $"Can not find util-vserver installation (the file '$UTIL_VSERVER_VARS' would be expected); aborting..." >&2 - exit 1 -} -. "$UTIL_VSERVER_VARS" - -LOCKFILE=vip6-autod -. "$_LIB_VSERVER_INIT_FUNCTIONS" - -prog="vip6-autod" - -function start() -{ - _beginResult $"Starting $prog" - $__SBINDIR/$prog - _endResult $? - local retval=$? - test "$retval" -ne 0 || touch "$lockfile" - return $retval -} - -function stop() -{ - _beginResult $"Stopping $prog" - kill `cat $__PKGSTATEDIR/../vip6-autod.pid` &>/dev/null - _endResult $? - local retval=$? - $_RM -f "$lockfile" - return $retval -} - -function restart() -{ - stop - start -} - -case "$1" in - start|stop|restart) $1;; - reload) ;; - condrestart) - test -f $lockfile && restart || : - ;; - status) - status $prog - ;; - *) - echo "Usage: $0 {start|stop|reload|restart|condrestart|status}" - exit 2 - ;; -esac