[File-rc-users] [SCM] Git repository for file-rc branch, master, updated. 58886e9d927327a72b988375e216800a2b522688

Alexander Wirt formorer at grml.org
Mon Mar 8 10:22:06 UTC 2010


The following commit has been merged in the master branch:
commit 58886e9d927327a72b988375e216800a2b522688
Author: Alexander Wirt <formorer at grml.org>
Date:   Mon Mar 8 11:22:07 2010 +0100

    Only stop processes if they were started in PREVLEVEL (#202294)

diff --git a/debian/changelog b/debian/changelog
index 7ec7c20..354b039 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ file-rc (0.8.12) unstable; urgency=low
     during boot (Closes: #505552). Thanks to Ken Bloom for the patch
   * Only create symlinks im post-rm if programs are missing (Closes: #543780)
     Thanks Petter Reinholdtsen for the patch
+  * Only stop services if they were started in PREVLEVEL (Closes: #202294) 
+    Thanks to Jörg Sommer for the patch
 
  -- Alexander Wirt <formorer at debian.org>  Sun, 07 Mar 2010 12:29:04 +0100
 
diff --git a/rc b/rc
index 1e471ad..c6cc9f2 100755
--- a/rc
+++ b/rc
@@ -227,7 +227,9 @@ do
     [ "$ON_LEVELS" != "-" ] && element "$runlevel" in "$ON_LEVELS" \
 	&& STARTLIST=`pushlevel $SORT_NO:$CMD $ON_LEVELS $STARTLIST`
 
-    element "$runlevel" in "$OFF_LEVELS" && STOPLIST="$STOPLIST$SORT_NO:$CMD "
+    if ! element "$prevlevel" in "$OFF_LEVELS"; then
+	    element "$runlevel" in "$OFF_LEVELS" && STOPLIST="$STOPLIST$SORT_NO:$CMD "
+    fi
 
 done < $CFGFILE
 

-- 
Git repository for file-rc



More information about the File-rc-users mailing list