mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Merge pull request #722 from pyllyukko/linux-bsdrc.d
Detect BSD-style (rc.d) init in Linux systems
This commit is contained in:
commit
6cd903e079
1 changed files with 5 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue