On Tue, Sep 29, 2015 at 10:46:02AM +0800, Casper Ti. Vector wrote: > * "opportunist" dependencies:
After some more thought, I found one may as well supply a `mandatory' and `opportunist' file for each service, and write a preprocessor program to auto-generate the `dependencies' file, like this one: > #!/bin/sh - > # Usage: echo $list_of_enabled_services | > # ./"$0" mandatory opportunist > dependencies > tr -s ' ' '\n' | > grep -xF "$2" | > cat "$1" - So this mechanism can be left out of s6-rc; however, whether it *should* be might still be arguable. > ... If this is supported, service definition can be distributed in a > more uniform manner (cf. OpenRC's runscripts). Clarification: by "distributed", I mean "provided by a distribution". In other words, distributions have differently tailored service definition repositories, but each distribution (ideally) has only one repository that is uniform to its users. -- My current OpenPGP key: 4096R/0xE18262B5D9BF213A (expires: 2017.1.1) D69C 1828 2BF2 755D C383 D7B2 E182 62B5 D9BF 213A
