But what would be helpful though, is to actually have a switch for dh_installinit, which does:
1.) start the service on install (postinst) 2.) restart the service on upgrade (postinst) 3.) stop the service on remove (prerm)
What I used in rsyslog is dh_installinit -r and the following snippet in postinst (before the #DEBHELPER# stanza: # Stop the service on upgrades before it is started again. # dh_installinit -r will create the start code. if [ "$1" = configure ] && [ -n "$2" ]; then if [ -x "/etc/init.d/rsyslog" ]; then invoke-rc.d rsyslog stop || true fi fiIt would be nice, if debhelper could generate a code (similar to that) automatically for me.
Cheers, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature