Skip to contentSkip to conversation

rsyslog: keep rsyslog running as long as possible on shutdown

PATCH Superseded Steffen Sledz 4 participants 9 messages Aug 27, 2010 – Aug 31, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rsyslog: keep rsyslog running as long as possible on shutdown

---
 recipes/rsyslog/rsyslog.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
recipes/rsyslog/rsyslog.inc +2 -1
index a3bd125..e66e971 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
 DEPENDS = "zlib"
 HOMEPAGE = "http://www.rsyslog.com/"
 LICENSE = "GPLv3"
-INC_PR = "r1"
+INC_PR = "r2"
 
 SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
           file://rsyslog.conf \
@@ -60,3 +60,4 @@ pkg_postrm_${PN} () {
 CONFFILES_${PN} = "${sysconfdir}/rsyslog.conf"
 
 INITSCRIPT_NAME = "syslog"
+INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ."
Signature · 1 line
1.6.4.2
#1 lore raw

Am 27.08.2010 15:48, schrieb Steffen Sledz:

Quoted 2 lines

...
+INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ."

I just wanted to ask if there are any objections (e.g. a policy on using start/stop order 'levels') in using 'stop 90' here.

Steffen

#2 lore raw
Quoted 6 lines · Steffen Sledz

Am 27.08.2010 15:48, schrieb Steffen Sledz:

Quoted 2 lines

...
+INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ."

I just wanted to ask if there are any objections (e.g. a policy on using start/stop order 'levels') in using 'stop 90' here.

I guess its distro maintainers call isnt it ? in that case you should just add distro specific overrides for ones who want
it unless its a thing that all distros want.

Quoted 8 lines

Steffen

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw

Am 28.08.2010 01:34, schrieb Khem Raj:

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

+INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ."

I just wanted to ask if there are any objections (e.g. a policy on using start/stop order 'levels') in using 'stop 90' here.

I guess its distro maintainers call isnt it ?

I'm not sure if it is. That's why i asked for policies about this. ;-)

Steffen

#4 lore raw
Quoted 10 lines · Steffen Sledz

Am 28.08.2010 01:34, schrieb Khem Raj:

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

+INITSCRIPT_PARAMS = "start 20 2 3 4 5 . stop 90 0 1 6 ."

I just wanted to ask if there are any objections (e.g. a policy on using start/stop order 'levels') in using 'stop 90' here.

I guess its distro maintainers call isnt it ?

I'm not sure if it is. That's why i asked for policies about this. ;-)

Yes, the DISTRO maintainers would have the final say about start/stop levels (and, indeed, whether to use sysvinit at all). But it seems sensible for the package to provide reasonable defaults that would be acceptable to some/most distros.

p.

#5 lore raw

Am 31.08.2010 14:13, schrieb Phil Blundell:

Quoted 4 lines

Yes, the DISTRO maintainers would have the final say about start/stop levels (and, indeed, whether to use sysvinit at all). But it seems sensible for the package to provide reasonable defaults that would be acceptable to some/most distros.

OK. What's the best way to get the distro maintainers attention (and acks)?

Steffen

BTW: There's a new version of this patch (see later in this thread).

#6 lore raw
Quoted 11 lines · Steffen Sledz

Am 31.08.2010 14:13, schrieb Phil Blundell:

Quoted 4 lines

Yes, the DISTRO maintainers would have the final say about start/stop levels (and, indeed, whether to use sysvinit at all). But it seems sensible for the package to provide reasonable defaults that would be acceptable to some/most distros.

OK. What's the best way to get the distro maintainers attention (and acks)?

Steffen

BTW: There's a new version of this patch (see later in this thread).

For Angstrom

G

#8 lore raw

PATCH v2 1/1 various syslogs: keep syslog running as long as possible on shutdown

In reply to Steffen Sledz
---
 recipes/busybox/busybox.inc   |    7 +++++--
 recipes/rsyslog/rsyslog.inc   |    7 +++++--
 recipes/sysklogd/sysklogd.inc |    7 +++++--
 3 files changed, 15 insertions(+), 6 deletions(-)
recipes/busybox/busybox.inc +5 -2
index 96d9bb1..1046b2f 100644
@@ -11,7 +11,7 @@ LICENSE = "GPLv2"
 SECTION = "base"
 PRIORITY = "required"
 
-INC_PR = "r33"
+INC_PR = "r34"
 
 SRC_URI = "\
   file://busybox-cron \
@@ -257,7 +257,10 @@ pkg_postinst_${PN}-syslog () {
 	else
 		OPT="-s"
 	fi
-	update-rc.d $OPT syslog defaults
+	# remove all rc.d-links potentially created from alternative
+	# syslog packages before creating new ones
+	update-rc.d $OPT -f syslog remove
+	update-rc.d $OPT syslog start 20 2 3 4 5 . stop 90 0 1 6 .
 }
 
 pkg_prerm_${PN}-syslog () {
recipes/rsyslog/rsyslog.inc +5 -2
index a3bd125..8f67130 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "Rsyslog is an enhanced multi-threaded syslogd"
 DEPENDS = "zlib"
 HOMEPAGE = "http://www.rsyslog.com/"
 LICENSE = "GPLv3"
-INC_PR = "r1"
+INC_PR = "r2"
 
 SRC_URI = "http://www.rsyslog.com/files/download/rsyslog/${PN}-${PV}.tar.gz \
           file://rsyslog.conf \
@@ -31,7 +31,10 @@ pkg_postinst_${PN} () {
 	else
 		OPT="-s"
 	fi
-	update-rc.d $OPT syslog defaults
+	# remove all rc.d-links potentially created from alternative
+	# syslog packages before creating new ones
+	update-rc.d $OPT -f syslog remove
+	update-rc.d $OPT syslog start 20 2 3 4 5 . stop 90 0 1 6 .
 }
 
 pkg_prerm_${PN} () {
recipes/sysklogd/sysklogd.inc +5 -2
index f25af53..833fe6a 100644
@@ -1,7 +1,7 @@
 LICENSE = "GPL"
 SECTION = "base"
 DESCRIPTION = "The sysklogd package implements two system log daemons."
-INC_PR = "r3"
+INC_PR = "r4"
 
 SRC_URI = "http://www.ibiblio.org/pub/Linux/system/daemons/sysklogd-${PV}.tar.gz \
 	       file://nonrootinstall.patch \
@@ -52,7 +52,10 @@ pkg_postinst_${PN} () {
     else
 	OPT="-s"
     fi
-    update-rc.d $OPT syslog defaults
+    # remove all rc.d-links potentially created from alternative
+    # syslog packages before creating new ones
+    update-rc.d $OPT -f syslog remove
+    update-rc.d $OPT syslog start 20 2 3 4 5 . stop 90 0 1 6 .
 }
 
 pkg_prerm_${PN} () {
Signature · 1 line
1.7.1