summaryrefslogtreecommitdiff
path: root/recipes/rsyslog
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/rsyslog
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/rsyslog')
-rw-r--r--recipes/rsyslog/rsyslog.inc7
1 files changed, 5 insertions, 2 deletions
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} () {