Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#5880 - dependencies in initscripts

Attached to Project: Arch Linux
Opened by héctor (hacosta) - Thursday, 23 November 2006, 07:56 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 08 March 2008, 18:21 GMT
Task Type Feature Request
Category System
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Architecture All
Severity Low
Priority Low
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No


it would be nice if we could have a DEPENDENCIES=() field in each script
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 08 March 2008, 18:21 GMT
Reason for closing:  Implemented
Comment by Roman Kyrylych (Romashka) - Thursday, 23 November 2006, 18:33 GMT
IMHO there is little demand for this functionality. How many rc.d scripts will benefit from it? I think this will only add more complexity.
Comment by héctor (hacosta) - Thursday, 23 November 2006, 20:36 GMT
off the top of my head hal, and nfs.. besides hal's initscript already "implements this".. imho it would be better if there is a standard way.
Comment by Aaron Griffin (phrakture) - Monday, 17 December 2007, 07:56 GMT
  • Field changed: Priority (Normal → Low)
I'm leaving this open, but I personally disagree with such functionality. Anyone is free to implement this and submit a patch, but I will not.
Comment by Thomas Bächler (brain0) - Monday, 17 December 2007, 08:34 GMT
Good idea IMO. Look at the hal script, the solution used here is not nice. Other than nfs, one of the most reported problems with this is bluetooth: if you don't start dbus before bluetooth, hcid doesn't work, and thus bluetooth is disabled.
Comment by héctor (hacosta) - Sunday, 06 January 2008, 10:20 GMT
how about this.. dep.diff is a very simple patch for the functions file, hal is just how this could work
Comment by Aaron Griffin (phrakture) - Monday, 07 January 2008, 18:31 GMT
Nicely done. I think I will apply this in one way or another if no one objects.
Comment by Roman Kyrylych (Romashka) - Tuesday, 08 January 2008, 02:13 GMT
Hm, I wonder why my comment hasn't appeared here, maybe I forgot to press the submit button :-/.
In short - I like Héctor's solution! st_daemon() is redundant though.
Comment by Hussam Al-Tayeb (hussam) - Friday, 07 March 2008, 22:39 GMT
Sorry for the bug spam, but I would really like to thank you guys for considering this. It is a really nice addition.
There are some daemons that require other daemons to be running first, otherwise they won't work correctly.
For example, adsl requires network. avahi-daemon requires hal.
Comment by Aaron Griffin (phrakture) - Friday, 07 March 2008, 23:28 GMT
Roman, you have commit rights on initscripts, right? Would you mind merging this one for me? Or at least git-icising it?
Comment by Roman Kyrylych (Romashka) - Saturday, 08 March 2008, 09:14 GMT
sure, will do this later today (~3 hours after)
Comment by Roman Kyrylych (Romashka) - Saturday, 08 March 2008, 18:20 GMT
Committed, with simplified function and usage.