Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpyllyukko <pyllyukko@maimed.org>2019-06-06 15:41:29 +0300
committerpyllyukko <pyllyukko@maimed.org>2019-06-06 15:41:29 +0300
commit9b02934339e7bf593de3fb8112e8a7e7d1ba1b1d (patch)
tree7050edd91c88c38e2ef6aad6e1d15b45dcb4f996 /include/tests_boot_services
parenta64e3966c9cc419bcbe86806a11a1d1daf054409 (diff)
Detect BSD-style (rc.d) init in Linux systems
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r--include/tests_boot_services6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index 5495938c..42b8dab1 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -96,7 +96,11 @@
;;
"init" | "initsplash")
- SERVICE_MANAGER="SysV Init"
+ if [ -d ${ROOTDIR}etc/rc.d ]; then
+ SERVICE_MANAGER="bsdrc.d"
+ else
+ SERVICE_MANAGER="SysV Init"
+ fi
;;
systemd)
SERVICE_MANAGER="systemd"