diff --git a/include/tests_boot_services b/include/tests_boot_services index c3431fbd..93034422 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -63,6 +63,7 @@ # Description : Determine service manager # Notes : # initscripts - Used by Arch before + # runit - Used by Artix, Devuan, Dragora and Void # systemd - Common option with more Linux distros implementing it # upstart - Used by Debian/Ubuntu Register --test-no BOOT-5104 --weight L --network NO --category security --description "Determine service manager" @@ -71,7 +72,7 @@ case ${OS} in "Linux") if [ -f /proc/1/cmdline ]; then - OUTPUT=$(${AWKBINARY} '/(^\/|init)/ { print $1 }' /proc/1/cmdline | ${TRBINARY} '\0' ' ' | ${SEDBINARY} 's/ $//') + OUTPUT=$(${AWKBINARY} '/(^\/|init|runit)/ { print $1 }' /proc/1/cmdline | ${TRBINARY} '\0' ' ' | ${SEDBINARY} 's/ $//') LogText "Result: cmdline found = ${OUTPUT}" FILENAME=$(echo "${OUTPUT}" | ${AWKBINARY} '{print $1}') LogText "Result: file on disk = ${FILENAME}" @@ -108,6 +109,9 @@ upstart) SERVICE_MANAGER="upstart" ;; + runit) + SERVICE_MANAGER="runit" + ;; *) CONTAINS_SYSTEMD=$(echo ${SHORTNAME} | ${GREPBINARY} "systemd") if [ -n "${CONTAINS_SYSTEMD}" ]; then