From 9220aeaa84fea6d099e7f88e2eb68fdbaab09f17 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 16 Jan 2009 22:07:30 +0100 Subject: 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. --- debian/rsyslog.init | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'debian/rsyslog.init') 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() -- cgit v1.2.3