From: Timo Aaltonen Date: Mon, 24 Apr 2023 04:08:15 +0000 (+0100) Subject: Fix the path to systemctl binary X-Git-Tag: archive/raspbian/1.4.0.21-1+rpi1+deb10u1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=16b884b411663e32cc3daa6bdec24bcc1e60287f;p=389-ds-base.git Fix the path to systemctl binary Gbp-Pq: Name fix-systemctl-path.diff --- 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