diff options
author | Michael Biebl <biebl@debian.org> | 2009-01-16 22:07:30 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2009-01-16 22:07:45 +0100 |
commit | 9220aeaa84fea6d099e7f88e2eb68fdbaab09f17 (patch) | |
tree | 27862f0e58eca197e0df3f034d2381670a63521d /debian/rsyslog.postinst | |
parent | 06ba708f8e859fb51f8e6c32fff002904bb42c9b (diff) | |
download | rsyslog-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.postinst')
-rw-r--r-- | debian/rsyslog.postinst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/rsyslog.postinst b/debian/rsyslog.postinst index ed856d9..6f8b8a2 100644 --- a/debian/rsyslog.postinst +++ b/debian/rsyslog.postinst @@ -58,6 +58,15 @@ case "$1" in rotate_old_log_files fi + # Update init script priorities + if dpkg --compare-versions "$2" lt "3.20.2-1"; then + for i in 0 6 ; do + if [ -e /etc/rc$i.d/K90rsyslog ]; then + mv /etc/rc$i.d/K90rsyslog /etc/rc$i.d/S30rsyslog + fi + done + fi + # Stop the service on upgrades before it is started again. # dh_installinit -r will create the start code. if [ -n "$2" ]; then |