[Initscripts-ng-commits] r581 - /trunk/src/insserv/debian/run-testsuite
pere at users.alioth.debian.org
pere at users.alioth.debian.org
Mon Feb 4 18:57:03 UTC 2008
Author: pere
Date: Mon Feb 4 18:57:03 2008
New Revision: 581
URL: http://svn.debian.org/wsvn/initscripts-ng/?sc=1&rev=581
Log:
Extend new test.
Modified:
trunk/src/insserv/debian/run-testsuite
Modified: trunk/src/insserv/debian/run-testsuite
URL: http://svn.debian.org/wsvn/initscripts-ng/trunk/src/insserv/debian/run-testsuite?rev=581&op=diff
==============================================================================
--- trunk/src/insserv/debian/run-testsuite (original)
+++ trunk/src/insserv/debian/run-testsuite Mon Feb 4 18:57:03 2008
@@ -757,17 +757,30 @@
### END INIT INFO
EOF
+addscript nostopscript <<'EOF' || true
+### BEGIN INIT INFO
+# Provides: nostopscript
+# Required-Start:
+# Required-Stop:
+# Default-Start: 2 3 4 5
+# Default-Stop:
+### END INIT INFO
+EOF
+
# Problem is only triggered if there are start or stop symlinks for
# the script present.
-for runlevel in 2 3 4 5 ; do
- mkdir -p $initddir/../rc$runlevel.d
- ln -s ../init.d/script $initddir/../rc$runlevel.d/S02script
+for name in script nostopscript ; do
+ for runlevel in 2 3 4 5 ; do
+ mkdir -p $initddir/../rc$runlevel.d
+ ln -s ../init.d/script $initddir/../rc$runlevel.d/S02$name
+ done
done
check_script_present 2 script
check_script_present 5 script
+check_script_not_present S script
check_script_not_present 1 script
-check_script_not_present S script
+check_script_not_present 1 nostopscript
# Update symlinks, see if it add stop symlinks
insserv_reg .
@@ -776,8 +789,9 @@
check_script_present 2 script
check_script_present 5 script
+check_script_not_present S script
check_script_not_present 1 script
-check_script_not_present S script
+check_script_not_present 1 nostopscript
##########################################################################
More information about the Initscripts-ng-commits
mailing list