Jonas/others, > Mh, I think dpkg-reconfigure should be patched, not dh_installinit. > dpkg-reconfigure could check (with pidof) if the daemon is running, if > not start, and if it runs, restart. That would be the simplest solution. dpkg-reconfigure doesn't know anything about the package, whether it contains a daemon or not, how many daemons are in there, how they are started etc. Only the postinst can know that, thus the code that decides what to do needs to be in the postinst, which is what dh_installinit modifies. That's why I proposed changing dh_installinit. BTW, using pidof is bad. You should use the pidfile in /var/run whenever possible. Oh wait, only the postinst knows the name of the pidfile... :-) Simon -- GPG Fingerprint: 040E B5F7 84F1 4FBC CEAD ADC6 18A0 CC8D 5706 A4B4
Attachment:
pgppc1vb9hgg0.pgp
Description: PGP signature