diff options
author | mboelen <michael@cisofy.com> | 2016-03-17 22:57:31 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-03-17 22:57:31 +0300 |
commit | e949e560d7b8709efd8fb591cee1a081ea0d9e06 (patch) | |
tree | 1133a4789a317f6f05b5c5ecdfaab41a7f89aa52 /include/tests_boot_services | |
parent | b9dba2f3becd433382132a5e68dc7d755f15c619 (diff) |
Improve systemd detection on Fedora
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r-- | include/tests_boot_services | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services index 0e0a18af..ac98b35b 100644 --- a/include/tests_boot_services +++ b/include/tests_boot_services @@ -97,8 +97,13 @@ SERVICE_MANAGER="upstart" ;; *) - LogText "Found ${SHORTNAME}. Unclear what service manager this is" - ReportException "${TEST_NO}:001" "Unknown service manager" + CONTAINS_SYSTEMD=`echo ${SHORTNAME} | grep "systemd"` + if [ ! "${CONTAINS_SYSTEMD}" = "" ]; then + SERVICE_MANAGER="systemd" + else + LogText "Found ${SHORTNAME}. Unclear what service manager this is" + ReportException "${TEST_NO}:001" "Unknown service manager" + fi ;; esac else |