summaryrefslogtreecommitdiff
path: root/recipes/sysklogd
diff options
context:
space:
mode:
authorSteffen Sledz <sledz@dresearch.de>2010-08-27 14:48:43 +0200
committerSteffen Sledz <sledz@dresearch.de>2010-08-31 16:21:35 +0200
commitec73d417a0a68b0ee398d750a437227ba18da650 (patch)
tree17a8efa9ce72c81399aa97a3691d57bbd36b3ced /recipes/sysklogd
parent0ba9d6f94caea026c282d9d87704e4ada62babf0 (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>
Diffstat (limited to 'recipes/sysklogd')
-rw-r--r--recipes/sysklogd/sysklogd.inc7
1 files changed, 5 insertions, 2 deletions
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} () {