Fix the path to systemctl binary
authorTimo Aaltonen <tjaalton@debian.org>
Tue, 21 Apr 2020 17:19:06 +0000 (18:19 +0100)
committerTimo Aaltonen <tjaalton@debian.org>
Tue, 21 Apr 2020 17:19:06 +0000 (18:19 +0100)
Gbp-Pq: Name fix-systemctl-path.diff

ldap/admin/src/scripts/start-dirsrv.in
ldap/admin/src/scripts/status-dirsrv.in
ldap/admin/src/scripts/stop-dirsrv.in

index c1ed5f7b2f7ccebb33860cff4f0e94b54cd0b5f6..fcb1845e2e20e7e520b863b0d464af93223adea6 100755 (executable)
@@ -36,7 +36,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 -l
+        /bin/systemctl start @package_name@@$SERV_ID.service -l
         if [ $? -ne 0 ]; then
             return 1
         fi
index 86b7d4a491511834bf7574d98661031cbba0d262..4f2cb7185519a0beeb1340265bbd73c06fa1f368 100755 (executable)
@@ -27,7 +27,7 @@ status_instance() {
     # Use systemctl if available.
     #
     if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
-        @bindir@/systemctl status @package_name@@$SERV_ID.service -l --no-pager
+        /bin/systemctl status @package_name@@$SERV_ID.service -l --no-pager
         rv=$?
         if [ $rv -ne 0 ]; then
             return 1
@@ -69,7 +69,7 @@ if [ $# -eq 0 ]; then
     # Use systemctl if available and running as root,
     #
     if [ -d "@systemdsystemunitdir@" ] && [ $(id -u) -eq 0 ];then
-        @bindir@/systemctl status @package_name@@*.service -l --no-pager
+        /bin/systemctl status @package_name@@*.service -l --no-pager
         ret=$?
         if [ $? -ne 0 ]; then
             return 1
index 7c2503438fae374530ce8d332d65f3250ee24887..ccc05119267ea220086780843b820d263ff44d1c 100755 (executable)
@@ -27,12 +27,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 -l
+            /bin/systemctl stop @package_name@@$SERV_ID.service -l
         else
             # 
             # Have to kill it since systemctl doesn't think it's running