From 41d5b79d5c0574e05e54ea71696cd330aa48c8b3 Mon Sep 17 00:00:00 2001 From: Debian FreeIPA Team Date: Thu, 11 Jul 2019 18:33:27 +0100 Subject: [PATCH] fix-systemctl-path Gbp-Pq: Name fix-systemctl-path.diff --- ldap/admin/src/scripts/start-dirsrv.in | 2 +- ldap/admin/src/scripts/stop-dirsrv.in | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ldap/admin/src/scripts/start-dirsrv.in b/ldap/admin/src/scripts/start-dirsrv.in index 70336ba..d9d4e30 100755 --- a/ldap/admin/src/scripts/start-dirsrv.in +++ b/ldap/admin/src/scripts/start-dirsrv.in @@ -55,7 +55,7 @@ start_instance() { # otherwise start the instance the old way. # if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then - @bindir@/systemctl start @package_name@@$SERV_ID.service + /bin/systemctl start @package_name@@$SERV_ID.service if [ $? -ne 0 ]; then return 1 fi diff --git a/ldap/admin/src/scripts/stop-dirsrv.in b/ldap/admin/src/scripts/stop-dirsrv.in index 41ffb6c..40f6d28 100755 --- a/ldap/admin/src/scripts/stop-dirsrv.in +++ b/ldap/admin/src/scripts/stop-dirsrv.in @@ -43,12 +43,12 @@ stop_instance() { # # Now, check if systemctl is aware of this running instance # - @bindir@/systemctl is-active @package_name@@$SERV_ID.service > /dev/null 2>&1 + /bin/systemctl is-active @package_name@@$SERV_ID.service > /dev/null 2>&1 if [ $? -eq 0 ]; then # # systemctl sees the running process, so stop it correctly # - @bindir@/systemctl stop @package_name@@$SERV_ID.service + /bin/systemctl stop @package_name@@$SERV_ID.service else # # Have to kill it since systemctl doesn't think it's running -- 2.30.2