From ef774397b3f2ef2db61bc722fbe8d3ddc98d1d68 Mon Sep 17 00:00:00 2001 From: Anton Midyukov Date: Sun, 28 Nov 2021 22:58:12 +0700 Subject: [PATCH] 90-apache2-base-httpd.filetrigger: do not require systemctl --- 90-apache2-base-httpd.filetrigger | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/90-apache2-base-httpd.filetrigger b/90-apache2-base-httpd.filetrigger index b79d06184..e2e4f98ff 100644 --- a/90-apache2-base-httpd.filetrigger +++ b/90-apache2-base-httpd.filetrigger @@ -2,7 +2,8 @@ LC_ALL=C egrep -qs '^/etc/httpd2|/usr/lib64/apache2/modules|/usr/sbin/httpd2|/usr/sbin/apachectl2|/etc/sysconfig/httpd2|/etc/rc.d/init.d/httpd2|/lib/systemd/system/httpd2.service' || exit 0 if sd_booted; then - systemctl daemon-reload || : + SYSTEMCTL=/sbin/systemctl + "$SYSTEMCTL" daemon-reload || : fi /sbin/service httpd2 condrestart -- 2.33.0