chiark / gitweb /
service: properly remember if a sysv is actually enabled
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Aug 2010 15:12:25 +0000 (17:12 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 9 Aug 2010 15:12:25 +0000 (17:12 +0200)
commit5de6b302196f3a708a0ed36d88abd9e17bbc9d52
tree5321a5ad24859eae3f436449530afbea662d9269
parent2cf3143ac3650feff2e3069d6d02bb8e46ab1929
service: properly remember if a sysv is actually enabled

Previously we checked the SysV priority value to figure out if a SysV
unit was enabled or not, since th value was mostly read from the S
startup links. Since we read this value from the LSB headers as a
fallback we hence ended up considering a lot more services enabled than
were actually enabled.

This patch adds an explicit boolean which encodes whether a sysv service
is enabled or not via S links.

https://bugzilla.redhat.com/show_bug.cgi?id=615293
src/service.c
src/service.h