summaryrefslogtreecommitdiff
path: root/src/service.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-09 17:12:25 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-09 17:12:25 +0200
commit5de6b302196f3a708a0ed36d88abd9e17bbc9d52 (patch)
tree5321a5ad24859eae3f436449530afbea662d9269 /src/service.h
parent2cf3143ac3650feff2e3069d6d02bb8e46ab1929 (diff)
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
Diffstat (limited to 'src/service.h')
-rw-r--r--src/service.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/service.h b/src/service.h
index 0ddaaa4c2d..3e18d221d7 100644
--- a/src/service.h
+++ b/src/service.h
@@ -111,18 +111,14 @@ struct Service {
bool root_directory_start_only;
bool valid_no_process;
- bool main_pid_known:1;
-
/* If we shut down, remember why */
bool failure:1;
-
+ bool main_pid_known:1;
bool bus_name_good:1;
-
bool allow_restart:1;
-
bool got_socket_fd:1;
-
bool sysv_has_lsb:1;
+ bool sysv_enabled:1;
int socket_fd;
int sysv_start_priority;