diff options
author | Steffen Sledz <sledz@dresearch.de> | 2010-08-27 14:48:43 +0200 |
---|---|---|
committer | Steffen Sledz <sledz@dresearch.de> | 2010-08-31 16:21:35 +0200 |
commit | ec73d417a0a68b0ee398d750a437227ba18da650 (patch) | |
tree | 17a8efa9ce72c81399aa97a3691d57bbd36b3ced | |
parent | 0ba9d6f94caea026c282d9d87704e4ada62babf0 (diff) |
various syslogs: keep syslog running as long as possible on shutdown
Signed-off-by: Steffen Sledz <sledz@dresearch.de>
Acked-by: Graeme Gregory <dp@xora.org.uk>
-rw-r--r-- | recipes/busybox/busybox.inc | 7 | ||||
-rw-r--r-- | recipes/rsyslog/rsyslog.inc | 7 | ||||
-rw-r--r-- | recipes/sysklogd/sysklogd.inc | 7 |
3 files changed, 15 insertions, 6 deletions
diff --git a/recipes/busybox/busybox.inc b/recipes/busybox/busybox.inc index 96d9bb1df4..1046b2f1ce 100644 --- a/recipes/busybox/busybox.inc +++ b/recipes/busybox/busybox.inc @@ -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 () { diff --git a/recipes/rsyslog/rsyslog.inc b/recipes/rsyslog/rsyslog.inc index a3bd125855..8f67130274 100644 --- a/recipes/rsyslog/rsyslog.inc +++ b/recipes/rsyslog/rsyslog.inc @@ -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} () { diff --git a/recipes/sysklogd/sysklogd.inc b/recipes/sysklogd/sysklogd.inc index f25af532dc..833fe6a281 100644 --- a/recipes/sysklogd/sysklogd.inc +++ b/recipes/sysklogd/sysklogd.inc @@ -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} () { |