FS#24843 - Do not start daemons from other daemons

Attached to Project: Arch Linux
Opened by Tom Gundersen (tomegun) - Thursday, 23 June 2011, 19:02 GMT
Last edited by Tom Gundersen (tomegun) - Friday, 26 August 2011, 14:52 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Jan de Groot (JGC)
Gaetan Bisson (vesath)
Dave Reisner (falconindy)
Tom Gundersen (tomegun)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The only way to start a daemon at boot, should be to list it in the DAEMONS array.

Recursively starting daemons is unlikely to work as expected. rc.shutdown will not know the ordering dependencies of the automatically started daemons, and will shut them down in the wrong order.

In a future release of initscripts, a warning will be printed if this is not fixed in the individual scripts.
Closed by  Tom Gundersen (tomegun)
Friday, 26 August 2011, 14:52 GMT
Reason for closing:  Implemented
Additional comments about closing:  Thanks to everyone who helped!
Comment by Gaetan Bisson (vesath) - Thursday, 23 June 2011, 22:31 GMT
So how should bugs such as  FS#13872  be handled? Shall `/etc/rc.d/avahi start` throw an error message when dbus is not detected? Could you help me understand what directions should thing go?
Comment by Tom Gundersen (tomegun) - Thursday, 23 June 2011, 22:39 GMT
I think the correct solution in the case of hard dependencies (such as avahi's dependency on dbus), is to throw an error if the dependency is not fulfilled. As is done in this suggested replacement for the hal script in  FS#24848 :

if ! ck_daemon dbus; then
echo "ERROR: Refusing to start hald without dbus running!" >&2
stat_die
fi
Comment by Gaetan Bisson (vesath) - Friday, 24 June 2011, 01:13 GMT
Alright. Note that ck_daemon works the other way around, though.
Comment by Tobias Powalowski (tpowa) - Friday, 26 August 2011, 14:42 GMT
This can be closed now, since nfs-utils is fixed or not?

Loading...