summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-05 20:28:51 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-05 20:28:51 +0200
commitd4054675b1eba164cec8a7e104b94ba1a5b069e1 (patch)
tree3b8b511eadc1b021df5ce8be2cf2ff5490a618b3 /src/service.c
parent95978cf8a66b0d03271f7da2399a3b588db0c71d (diff)
service: read special startup dirs only on the respective distros
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/service.c b/src/service.c
index b2e0f86ae8..ee1da2a7b3 100644
--- a/src/service.c
+++ b/src/service.c
@@ -56,11 +56,15 @@ static const struct {
{ "rc4.d", SPECIAL_RUNLEVEL4_TARGET, RUNLEVEL_UP },
{ "rc5.d", SPECIAL_RUNLEVEL5_TARGET, RUNLEVEL_UP },
+#ifdef TARGET_SUSE
/* SUSE style boot.d */
{ "boot.d", SPECIAL_SYSINIT_TARGET, RUNLEVEL_SYSINIT },
+#endif
+#ifdef TARGET_DEBIAN
/* Debian style rcS.d */
{ "rcS.d", SPECIAL_SYSINIT_TARGET, RUNLEVEL_SYSINIT },
+#endif
/* Standard SysV runlevels for shutdown */
{ "rc0.d", SPECIAL_POWEROFF_TARGET, RUNLEVEL_DOWN },