FS#24027 - Using POST_DOWN in Netcfg Causes Daemons to Be Stopped on Shutdown with Redundancy
Attached to Project:
Arch Linux
Opened by Sara Fauzia (sfauzia) - Sunday, 01 May 2011, 18:04 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Monday, 06 June 2011, 06:26 GMT
Opened by Sara Fauzia (sfauzia) - Sunday, 01 May 2011, 18:04 GMT
Last edited by Rémy Oudompheng (remyoudompheng) - Monday, 06 June 2011, 06:26 GMT
|
Details
I have two daemons (dropbox and openntpd) started by the
POST_UP line in my netcfg profile, and one really annoying
thing is that on shutdown, Arch tries to shutdown all the
daemons, so it will shut these, and then when it tries to
try to shut down my wireless, POST_DOWN is activated, and it
tries again to shut down dropbox and openntpd, which echoes
"FAIL" as this has already been done. On the other hand, I
do not wish to make null my POST_DOWN variable because if I
ever want to turn off my internet but not turn off my
computer (I use Arch on a laptop, so this happens often),
then these two daemons won't shut down as desired.
For sake of completeness, here are the pertinent lines from my wireless configuration file (/etc/network.d/wireless-wpa-config): POST_UP='/etc/rc.d/openntpd start && /etc/rc.d/dropboxd-userspace start || true' PRE_DOWN='/etc/rc.d/openntpd stop && /etc/rc.d/dropboxd-userspace stop || true' Reproducing this is pretty simple. Just start a daemon in POST_UP and stop it in POST_DOWN, restart netcfg for this to take effect, then try shutting down Arch. I am using the latest netcfg, 2.5.4-1. |
This task depends upon
Closed by Rémy Oudompheng (remyoudompheng)
Monday, 06 June 2011, 06:26 GMT
Reason for closing: Not a bug
Additional comments about closing: The behaviour is normal and services should be checked for status before attempting any stop action.
Monday, 06 June 2011, 06:26 GMT
Reason for closing: Not a bug
Additional comments about closing: The behaviour is normal and services should be checked for status before attempting any stop action.
Comment by Sara Fauzia (sfauzia) -
Monday, 02 May 2011, 04:45 GMT
How can I change the category to "Arch Linux Project", for that is
what netcfg is? Hopefully someone with the proper permissions can
do this for me.
Comment by
Jelle van der Waa (jelly) -
Saturday, 07 May 2011, 10:13 GMT
done
Comment by
Rémy Oudompheng (remyoudompheng) -
Monday, 06 June 2011, 06:23 GMT
Sara, this is exactly the intended behaviour. Archlinux of course
stops daemons on shutdown, and netcfg executes the given command.