From: Lennart Poettering Date: Thu, 5 Aug 2010 18:28:51 +0000 (+0200) Subject: service: read special startup dirs only on the respective distros X-Git-Tag: v6~12 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4054675b1eba164cec8a7e104b94ba1a5b069e1;p=systemd service: read special startup dirs only on the respective distros --- diff --git a/src/service.c b/src/service.c index b2e0f86a..ee1da2a7 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 },