Add LSB SysV information.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 21 Oct 2009 02:04:42 +0000 (02:04 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 21 Oct 2009 02:04:42 +0000 (02:04 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2855 94cd875c-1c1d-0410-91d2-eb244daf1a30

sysv/util-vserver
sysv/vprocunhide
sysv/vservers-default

index f6081e7..84128c3 100755 (executable)
@@ -4,6 +4,16 @@
 #
 # chkconfig: 2345 10 90
 # description: Sets the path to vshelper and kills all guest processes
+# 
+### BEGIN INIT INFO
+# Provides:          util-vserver
+# Required-Start:    $remote_fs $syslog $time
+# Required-Stop:     $remote_fs $syslog $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Sets the path to vshelper and kills all guest processes
+# Description:       Sets the path to vshelper and kills all guest processes
+### END INIT INFO
 
 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
 test -e "$UTIL_VSERVER_VARS" || {
index 285c1fb..4b5206f 100755 (executable)
@@ -4,6 +4,16 @@
 #
 # chkconfig: 2345 26 74
 # description: Makes some /proc entries visibly for vservers
+# 
+### BEGIN INIT INFO
+# Provides:          vprocunhide
+# Required-Start:    $remote_fs $syslog $time
+# Required-Stop:     $remote_fs $syslog $time
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: vprocunhide  sets vserver related attributes for /proc
+# Description:       vprocunhide  sets vserver related attributes for /proc.
+### END INIT INFO
 
 : ${UTIL_VSERVER_VARS:=/usr/lib/util-vserver/util-vserver-vars}
 test -e "$UTIL_VSERVER_VARS" || {
index 3d9b576..9cc3984 100755 (executable)
@@ -1,6 +1,16 @@
 #!/bin/sh
 # chkconfig: - 98 02
 # description: Wrapper to start the default vservers
+#
+### BEGIN INIT INFO
+# Provides:          vservers-default
+# Required-Start:    $remote_fs $syslog $time $network vprocunhide util-vserver 
+# Required-Stop:     $remote_fs $syslog $time $network vprocunhide util-vserver
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+# Short-Description: Wrapper to start the default vservers
+# Description:       Wrapper to start the default vservers
+### END INIT INFO
 
 ## The *basename* of the lockfile; this must be the same name like
 ## this if the initscript. Else, the vservers will not be stopped at
 ## putting the flavor into /etc/vservers/<vserver-id>/apps/init/mark.
 #MARK=default
 
+if test -r /etc/sysconfig/vservers-default; then
+    . /etc/sysconfig/vservers-default
+fi
+if test -r /etc/default/vservers-default; then
+    . /etc/default/vservers-default
+fi
+
 export MARK NUMPARALLEL LOCKFILE
 exec /usr/lib/util-vserver/vserver-wrapper "$@"