Re: On possibly "finer" dependencies in s6-rc

From: Casper Ti. Vector <caspervector_at_gmail.com>
Date: Tue, 29 Sep 2015 21:29:23 +0800

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
Received on Tue Sep 29 2015 - 13:29:23 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC