Merge pull request #722 from pyllyukko/linux-bsdrc.d

Detect BSD-style (rc.d) init in Linux systems
This commit is contained in:
Michael Boelen 2019-06-24 13:42:17 +02:00 committed by GitHub
commit 6cd903e079
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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"