vservers.default (841B)
1 #!/sbin/runscript 2 # Copyright 1999-2005 Gentoo Foundation 3 # Distributed under the terms of the GNU General Public License v2 4 5 depend() { 6 need util-vserver vprocunhide 7 } 8 9 start() { 10 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} 11 if [ ! -e ${UTIL_VSERVER_VARS} ]; then 12 eerror "Cannot find util-vserver installation" 13 eerror "(the file '$UTIL_VSERVER_VARS' would be expected)" 14 return 1 15 fi 16 . ${UTIL_VSERVER_VARS} 17 MARK=${SVCNAME#vservers.} $_VSERVER_WRAPPER start 18 } 19 20 stop() { 21 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars} 22 if [ ! -e ${UTIL_VSERVER_VARS} ]; then 23 eerror "Cannot find util-vserver installation" 24 eerror "(the file '$UTIL_VSERVER_VARS' would be expected)" 25 return 1 26 fi 27 . ${UTIL_VSERVER_VARS} 28 MARK=${SVCNAME#vservers.} $_VSERVER_WRAPPER stop 29 } 30 31 32 33 # vim:ts=4:filetype=gentoo-init-d