[Pkg-sysvinit-commits] r1944 - in sysvinit/trunk/debian: . src/sysv-rc/etc/init.d startpar/patches
Kel Modderman
kelmo-guest at alioth.debian.org
Tue Sep 21 12:42:30 UTC 2010
Author: kelmo-guest
Date: 2010-09-21 12:42:27 +0000 (Tue, 21 Sep 2010)
New Revision: 1944
Added:
sysvinit/trunk/debian/startpar/patches/08_kfreebsd_proc_error_debug.patch
Modified:
sysvinit/trunk/debian/changelog
sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc
sysvinit/trunk/debian/startpar/patches/06_stdin_notty.patch
sysvinit/trunk/debian/startpar/patches/series
Log:
* Remove runlevel duration printing code from init.d/rc script
as it was scheduled for removal before squeeze and imperfect.
(Closes: #584862)
* Really ignore CTRL-C interuption in initd.d/rc by setting a
signal trap with null string as argument. This prevents incomplete
boot if CTRL-C is pressed, eg. during fsck, when conccurrent boot is
enabled. (Closes: #595431)
* Prevent init.d/rc script from executing stop scripts twice
in runlevels 0 and 6 when conccurrent boot is enabled.
(Closes: #594253)
* Modify debian/startpar/patches/06_stdin_notty.patch so it applies
without fuzziness.
* Add debian/startpar/patches/08_kfreebsd_proc_error_debug.patch to
prevent frequent messages on Debian GNU/kFreeBSD from littering boot
messages. (Closes: #590560)
Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog 2010-08-15 18:10:00 UTC (rev 1943)
+++ sysvinit/trunk/debian/changelog 2010-09-21 12:42:27 UTC (rev 1944)
@@ -1,3 +1,23 @@
+sysvinit (2.88dsf-13) unstable; urgency=low
+
+ * Remove runlevel duration printing code from init.d/rc script
+ as it was scheduled for removal before squeeze and imperfect.
+ (Closes: #584862)
+ * Really ignore CTRL-C interuption in initd.d/rc by setting a
+ signal trap with null string as argument. This prevents incomplete
+ boot if CTRL-C is pressed, eg. during fsck, when conccurrent boot is
+ enabled. (Closes: #595431)
+ * Prevent init.d/rc script from executing stop scripts twice
+ in runlevels 0 and 6 when conccurrent boot is enabled.
+ (Closes: #594253)
+ * Modify debian/startpar/patches/06_stdin_notty.patch so it applies
+ without fuzziness.
+ * Add debian/startpar/patches/08_kfreebsd_proc_error_debug.patch to
+ prevent frequent messages on Debian GNU/kFreeBSD from littering boot
+ messages. (Closes: #590560)
+
+ -- Kel Modderman <kel at otaku42.de> Tue, 21 Sep 2010 22:20:59 +1000
+
sysvinit (2.88dsf-12) unstable; urgency=low
[ Petter Reinholdtsen ]
Modified: sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc
===================================================================
--- sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc 2010-08-15 18:10:00 UTC (rev 1943)
+++ sysvinit/trunk/debian/src/sysv-rc/etc/init.d/rc 2010-09-21 12:42:27 UTC (rev 1944)
@@ -16,8 +16,6 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
-starttime=$(date +%s)
-
# Un-comment the following for interactive debugging. Do not un-comment
# this for debugging a real boot process as no scripts will be executed.
# debug=echo
@@ -43,7 +41,7 @@
trap on_exit EXIT # Enable emergency handler
# Ignore CTRL-C only in this shell, so we can interrupt subprocesses.
-trap ":" INT QUIT TSTP
+trap "" INT QUIT TSTP
# Set onlcr to avoid staircase effect.
stty onlcr 0>&1
@@ -217,10 +215,13 @@
done
step=0
+ # First, run the KILL scripts.
if [ makefile = "$CONCURRENCY" ]
then
- [ "$previous" != N ] && startup stop
- # First, run the KILL scripts.
+ if [ "$ACTION" = "start" ] && [ "$previous" != N ]
+ then
+ startup stop
+ fi
elif [ "$previous" != N ]
then
# Run all scripts with the same level in parallel
@@ -333,11 +334,5 @@
trap - EXIT # Disable emergency handler
-# This code should be removed when Squeeze freeze is getting closer
-# - Petter 2010-05-18
-endtime=$(date +%s)
-duration=$(($endtime - $starttime))
-log_action_msg "Running scripts in rc$runlevel.d/ took $duration seconds"
-
exit 0
Modified: sysvinit/trunk/debian/startpar/patches/06_stdin_notty.patch
===================================================================
--- sysvinit/trunk/debian/startpar/patches/06_stdin_notty.patch 2010-08-15 18:10:00 UTC (rev 1943)
+++ sysvinit/trunk/debian/startpar/patches/06_stdin_notty.patch 2010-09-21 12:42:27 UTC (rev 1944)
@@ -4,12 +4,13 @@
A better approach would be to get parallel booting working in
such setting.
Fixes: #584102
-Authour: Petter Reinholdtsen
+Authour: Petter Reinholdtsen, with modification from Kel Modderman to
+ co-exist with 01_dev_pts_workaround.patch without fuzz.
Status: Not applied upstream
---- a/startpar.c (revision 1898)
-+++ b/startpar.c (working copy)
-@@ -631,6 +631,7 @@
+--- a/startpar.c
++++ b/startpar.c
+@@ -698,6 +698,7 @@ int main(int argc, char **argv)
char *prev_level = getenv("PREVLEVEL");
char *run_level = getenv("RUNLEVEL");
char *splashopt = 0;
@@ -17,7 +18,7 @@
(void)signal(SIGUSR1, sighandler_preload);
(void)signal(SIGUSR2, sighandler_nopreload);
-@@ -813,8 +814,7 @@
+@@ -880,8 +881,7 @@ int main(int argc, char **argv)
if (tcgetattr(0, &tio))
{
@@ -27,15 +28,15 @@
}
if (ioctl(0, TIOCGWINSZ, &wz) == 0)
wzok = 1;
-@@ -904,6 +904,11 @@
- }
- p->splashadd = calcsplash(num, argc, splashopt);
+@@ -976,9 +976,9 @@ int main(int argc, char **argv)
p->num = num++;
-+ if (notty)
-+ {
-+ interactive_task = p; /* no tty, treat as interactive */
-+ continue;
-+ }
if (interactive_task)
continue; /* don't start this here */
+- if (!devpts)
++ if (!devpts || notty)
+ {
+- interactive_task = p; /* no /dev/pts, treat as interactive */
++ interactive_task = p; /* no /dev/pts or tty, treat as interactive */
+ continue;
+ }
run(p);
Added: sysvinit/trunk/debian/startpar/patches/08_kfreebsd_proc_error_debug.patch
===================================================================
--- sysvinit/trunk/debian/startpar/patches/08_kfreebsd_proc_error_debug.patch (rev 0)
+++ sysvinit/trunk/debian/startpar/patches/08_kfreebsd_proc_error_debug.patch 2010-09-21 12:42:27 UTC (rev 1944)
@@ -0,0 +1,28 @@
+Purpose: Debian GNU/kFreeBSD does not have procs_running/procs_blocked
+ fields in /proc/stat. Avoid frequent messages about it.
+Fixes: #590560
+Authour: Petr Salinger <Petr.Salinger at seznam.cz>
+Status: Not yet submitted upstream.
+
+--- a/proc.c
++++ b/proc.c
+@@ -35,7 +35,9 @@ static unsigned long int scan_one(const
+ unsigned long val = 0;
+
+ if (!b) {
++#if DEBUG
+ fprintf(stderr, "ERROR: no hit for %s\n", key);
++#endif
+ return ~0UL;
+ }
+ if (sscanf(b + strlen(key), " %lu", &val) != 1)
+@@ -69,7 +71,8 @@ int read_proc(unsigned long int * const
+ }
+ fclose(stat);
+
+- /* These fields are not present in /proc/stat for 2.4 kernels */
++ /* These fields are not present in /proc/stat for 2.4 kernels
++ or GNU/kFreeBSD */
+ running = scan_one(StatBuf, "procs_running");
+ blocked = scan_one(StatBuf, "procs_blocked");
+
Modified: sysvinit/trunk/debian/startpar/patches/series
===================================================================
--- sysvinit/trunk/debian/startpar/patches/series 2010-08-15 18:10:00 UTC (rev 1943)
+++ sysvinit/trunk/debian/startpar/patches/series 2010-09-21 12:42:27 UTC (rev 1944)
@@ -6,3 +6,4 @@
05_pri_kdm_gdm.patch
06_stdin_notty.patch
07_nocrash_missing_arg.patch
+08_kfreebsd_proc_error_debug.patch
More information about the Pkg-sysvinit-commits
mailing list