ifplugd 0.27, just released, contains the desired "--no-startup" option.
This allows the following to be done:
* Add a new "try-restart-no-downup" method to the initscript.
(The name of the method is a derivative from the LSB standard
name "try-restart" of a method which restarts the daemon
if and only if it is already running. Our method is additionally
special in that it restarts the daemon without letting it run
stop and start scripts.) This method stops the daemon using
SIGQUIT instead of the usual SIGTERM, thus preventing the shutdown
script from being run by ifplugd. The method then starts ifplugd
again with the --no-startup option.
* On upgrade, the new postinst runs "try-restart-no-downup".
Thus, on upgrade the prerm does not run "stop" and the postinst
does not run "start" any more. This requires adding the
"--noscripts" option to the dh_installinit call in debian/rules
and requires the addition of a snippet like the following to the
postinst.
if [ -x "/etc/init.d/ifplugd" ]; then
update-rc.d ifplugd defaults >/dev/null
/etc/init.d/ifplugd try-restart-no-downup
fi
--
Thomas Hood <[EMAIL PROTECTED]>
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]