SOURCES: vserver-initng-rc (NEW) - moved separately from spec

glen glen at pld-linux.org
Fri Jul 29 17:45:53 CEST 2005


Author: glen                         Date: Fri Jul 29 15:45:53 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- moved separately from spec

---- Files affected:
SOURCES:
   vserver-initng-rc (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/vserver-initng-rc
diff -u /dev/null SOURCES/vserver-initng-rc:1.1
--- /dev/null	Fri Jul 29 17:45:53 2005
+++ SOURCES/vserver-initng-rc	Fri Jul 29 17:45:48 2005
@@ -0,0 +1,25 @@
+#!/bin/sh
+# avoid being interrupted by child or keyboard
+trap : INT QUIT TSTP
+
+# Default runlevel. The runlevels used by PLD are:
+#   0 - halt (Do NOT set initdefault to this)
+#   1 - Single user mode
+#   2 - Multiuser, without NFS (The same as 3, if you do not have networking)
+#   3 - Full multiuser mode
+#   4 - unused
+#   5 - X11
+#   6 - reboot (Do NOT set initdefault to this)
+
+set -x
+echo "args: $#:$@"
+runlevel="$1"
+case "$runlevel" in
+3)
+	exec /sbin/initng --i_am_init &
+	echo "initng execution failed!"
+;;
+0|6)
+	/sbin/ngc -j halt
+;;
+esac
================================================================



More information about the pld-cvs-commit mailing list