<p dir="ltr"><br>
On 31 May 2014 08:39, "Thomas H.P. Andersen" <<a href="mailto:phomes@gmail.com">phomes@gmail.com</a>> wrote:<br>
><br>
> 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.<br>
><br>
> Or do we want to run it just in time instead?</p>
<p dir="ltr">All generators are run on daemon-reload, which I think should be sufficient for this one too.</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>
><br>
><br>
> _______________________________________________<br>
> systemd-devel mailing list<br>
> <a href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
><br>
</p>