summaryrefslogtreecommitdiff
path: root/debian/rsyslog.postinst
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2009-02-10 03:07:26 +0100
committerMichael Biebl <biebl@debian.org>2009-02-10 03:52:59 +0100
commitb6d61a542524984d123277c453615d805f484e3a (patch)
treeaf6545262454d21ceb3bc74ff7f2f2acf8d15366 /debian/rsyslog.postinst
parentfb2a7ec9b97d971bb863f0fbb4449ceb56728e78 (diff)
downloadrsyslog-b6d61a542524984d123277c453615d805f484e3a.tar.gz
Use dh_instalinits' restart-on-upgrade option.
* debian/rules - Use new dh_installinit "-R" (restart-after-upgrade) option. * debian/rsyslog.postinst - Remove our custom code to stop/start rsyslog on upgrades. This is done now automatically by dh_installinit.
Diffstat (limited to 'debian/rsyslog.postinst')
-rw-r--r--debian/rsyslog.postinst8
1 files changed, 0 insertions, 8 deletions
diff --git a/debian/rsyslog.postinst b/debian/rsyslog.postinst
index 6f8b8a2..5ca3d3b 100644
--- a/debian/rsyslog.postinst
+++ b/debian/rsyslog.postinst
@@ -66,14 +66,6 @@ case "$1" in
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
- if [ -x "/etc/init.d/rsyslog" ]; then
- invoke-rc.d rsyslog stop || true
- fi
- fi
;;
abort-upgrade|abort-remove|abort-deconfigure)