[Buildroot] SysV init script revamp (proposal)

Alex Suykov alex.suykov at gmail.com
Sat Mar 7 09:27:37 UTC 2015


Fri, Mar 06, 2015 at 04:35:15PM -0300, Gustavo Zacarias wrote:

> Before going all crazy sending patches and possibly wasting a lot of
> time i'll write up my thoughts on how we could enhance/fix/clean the
> current scenario regarding initscript:

A word of support, it's a mess at present.
And since I was doing something related I'll post it here too.

My goal was to merge initscripts, systemd, scriptless sysv and my own init,
with focus mostly on foreground daemons.
The result, however, seems to be pretty close to your proposal,
with uniform (generated, in fact) initscripts, and possibly also
uniform pid file handling.

https://github.com/arsv/br
long(ish) description of ideas behind this:
https://raw.githubusercontent.com/arsv/br/master/brinits

Sysv-style configuration is missing atm, the plan was
to pick any variables from .run files (see netsnmp/snmpd.run)
and write them to relevant /etc/config.d/*.conf files.

The limiting factor is that any non-trivial variable handling,
basically any conditions, are not going to work well with systemd
(example: package/tvheadend/S99tvheadend).
And I feel better about residing to simple ARGS=... vs dropping
systemd just because of this.


More information about the buildroot mailing list