summaryrefslogtreecommitdiff
path: root/debian/rsyslog.init
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2009-01-16 22:07:30 +0100
committerMichael Biebl <biebl@debian.org>2009-01-16 22:07:45 +0100
commit9220aeaa84fea6d099e7f88e2eb68fdbaab09f17 (patch)
tree27862f0e58eca197e0df3f034d2381670a63521d /debian/rsyslog.init
parent06ba708f8e859fb51f8e6c32fff002904bb42c9b (diff)
downloadrsyslog-9220aeaa84fea6d099e7f88e2eb68fdbaab09f17.tar.gz
Collect messages as long as possible during shutdown or reboot.
Let rsyslog collect messages as long as possible during shutdown or reboot. As /usr may be mounted via NFS, the latest possible point is just before umountnfs. Closes: #474498 - Update the stop priorities for runlevel 0 and 6 from K90 to S30 for sysv-rc and migrate existing symlinks. - Update LSB header to stop after sendsigs and before umountnfs. - Use the sendsigs process omission interface to avoid being killed by killall5.
Diffstat (limited to 'debian/rsyslog.init')
-rw-r--r--debian/rsyslog.init10
1 files changed, 7 insertions, 3 deletions
diff --git a/debian/rsyslog.init b/debian/rsyslog.init
index fb4dfab..c3b6267 100644
--- a/debian/rsyslog.init
+++ b/debian/rsyslog.init
@@ -2,9 +2,8 @@
### BEGIN INIT INFO
# Provides: rsyslog
# Required-Start: $remote_fs $time
-# Required-Stop: $remote_fs $time
-# Should-Start: $network
-# Should-Stop: $network
+# Required-Stop: umountnfs $time
+# X-Stop-After: sendsigs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: enhanced syslogd
@@ -51,6 +50,11 @@ do_start()
# 1 if daemon was already running
# other if daemon could not be started or a failure occured
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS
+
+ OMITDIR=/lib/init/rw/sendsigs.omit.d
+ mkdir -p $OMITDIR
+ rm -f $OMITDIR/rsyslog
+ ln -s $PIDFILE $OMITDIR/rsyslog
}
do_stop()