<p dir="ltr">This needs some more work. Currently only initscripts linked from the rc?d dirs are generated. We of course need to generate them all and have a way to run the generator after a new initscript is installed.</p>
<p dir="ltr">Or do we want to run it just in time instead?</p>
<p dir="ltr">On May 30, 2014 3:28 PM, "Thomas H.P. Andersen" <<a href="mailto:phomes@gmail.com">phomes@gmail.com</a>> wrote:<br>
><br>
> From: Thomas Hindoe Paaboel Andersen <<a href="mailto:phomes@gmail.com">phomes@gmail.com</a>><br>
><br>
> Move initscript parsing to a generator<br>
><br>
> Compared to the previous version this one includes a fix for initscripts that<br>
> have no start priority. I have also updated the commit messages. The patches<br>
> have a few warts that I consider irrelevant but am willing to fix if there is<br>
> interest.<br>
><br>
> The following now unused sysv-specific info are dropped from service dump:<br>
> Â * SysV Init Script has LSB Header: (yes/no)<br>
> Â * SysVEnabled: (yes/no)<br>
> Â * SysVRunLevels: (levels)<br>
><br>
> Note that this drops reading of chkconfig entirely. It also drops reading<br>
> runlevels from the LSB headers. The runlevels were only used to check for<br>
> runlevels outside of the normal 1-5 range and then add special dependencies<br>
> and settings. Special runlevels were dropped in the past so it seemed to be<br>
> unused code.<br>
><br>
> The generator does not know about non-generated units with a value set with<br>
> SysVStartPriority=. These are therefor not taken into account when converting<br>
> start priority to before/after. After the special runlevels were dropped I<br>
> don't see how this option adds any value.<br>
><br>
> Thomas Hindoe Paaboel Andersen (2):<br>
> Â Move handling of sysv initscripts to a generator<br>
> Â Remove sysv parser from service.c<br>
><br>
>  .gitignore              |  1 +<br>
>  Makefile.am             |  10 +<br>
>  src/core/service.c          | 984 +-----------------------------------<br>
>  src/core/service.h          |  5 -<br>
>  src/sysv-generator/Makefile     |  1 +<br>
> Â src/sysv-generator/sysv-generator.c | 899 ++++++++++++++++++++++++++++++++<br>
> Â 6 files changed, 921 insertions(+), 979 deletions(-)<br>
> Â create mode 100644 src/sysv-generator/Makefile<br>
> Â create mode 100644 src/sysv-generator/sysv-generator.c<br>
><br>
> --<br>
> 1.9.3<br>
><br>
</p>