Closed JackNewman12 closed 1 year ago
Yeah I've been a bit too liberal with what's optional in /etc/finit.d, resulting in a lot of "System may have ...". I think it's time to nail down the Apache-style layout.
I like your idea here, since it solves another use-case, so I'll look into adopting it for the 4.4. release (which admittedly is very late already), but I'll have to clean up some of the other logic in initctl as well.
This is a minor point and might not even be worth fixing but I noticed that enabling a service does not work if the available and enabled folders are not next to each other.
For example you could have a read-only list of services in the system, and then link them into a tmpfs to enable them as required by configuration options:
When
serv_enable
ends up trying to link to the available service via../available
which can't be found since/var/run/available
does not exist.I did a quick hack to get this working on my end. But I think I have broken the
System *may* have enabled/ dir
edge-case.