chiark / gitweb /
sysv-generator: Skip init scripts for existing native services
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 2 Jul 2014 20:00:00 +0000 (22:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 11 Feb 2015 12:02:01 +0000 (13:02 +0100)
commitf4f01ec146d91cb6943828851d98eee6a1ad4dd9
tree7a9fa4a45f8b36cd63f4c95bfcf419088e3845d6
parentf93b36affa5ac5710cd84bfb8ff0dafabe99fbf1
sysv-generator: Skip init scripts for existing native services

This avoids taking the SysV init script enablement state into account if we
have native units. Otherwise systemctl disable on native unit would not
be respected in the presence of an enabled SysV script.

Also, there's no need to do all the parsing and creation of service files if we
already have a native systemd unit for the processed SysV init script.
src/sysv-generator/sysv-generator.c
test/sysv-generator-test.py