chiark / gitweb /
Move handling of sysv initscripts to a generator
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 22 May 2014 22:37:39 +0000 (00:37 +0200)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 6 Jun 2014 22:59:32 +0000 (00:59 +0200)
commit95ed3294c632f5606327149f10cef1eb34422862
treead53c54c46850360124047160c74f0b22fdedb16
parent0e252f6b375af59eac9bd6d2fe8dd6ee2f51998d
Move handling of sysv initscripts to a generator

Reuses logic from service.c and the rc-local generator.

Note that this drops reading of chkconfig entirely. It also drops reading
runlevels from the LSB headers. The runlevels were only used to check for
runlevels outside of the normal 1-5 range and then add special dependencies
and settings. Special runlevels were dropped in the past so it seemed to be
unused code.

The generator does not know about non-generated units with a value set with
SysVStartPriority=. These are therefor not taken into account when converting
start priority to before/after.
.gitignore
Makefile.am
src/sysv-generator/Makefile [new file with mode: 0644]
src/sysv-generator/sysv-generator.c [new file with mode: 0644]