mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Detect BSD-style (rc.d) init in Linux systems
This commit is contained in:
parent
a64e3966c9
commit
9b02934339
@ -96,7 +96,11 @@
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"init" | "initsplash")
|
"init" | "initsplash")
|
||||||
SERVICE_MANAGER="SysV Init"
|
if [ -d ${ROOTDIR}etc/rc.d ]; then
|
||||||
|
SERVICE_MANAGER="bsdrc.d"
|
||||||
|
else
|
||||||
|
SERVICE_MANAGER="SysV Init"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
systemd)
|
systemd)
|
||||||
SERVICE_MANAGER="systemd"
|
SERVICE_MANAGER="systemd"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user