Skip to contentSkip to conversation

systemd: add PATH for finding systemctl

PATCH In review Kinglong Mee 2 participants 2 messages Apr 25, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: add PATH for finding systemctl

The 1.3.0 release adds a call to systemctl fails for it's in /usr/bin.

[root@localhost nfs-utils]# start-statd /usr/sbin/start-statd: line 9: systemctl: command not found Statd service already running!

---
 utils/statd/start-statd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/statd/start-statd +1 -1
index cde3583..8ac3798 100644
@@ -4,7 +4,7 @@
 # /var/run/rpc.statd.pid).
 # It should run statd with whatever flags are apropriate for this
 # site.
-PATH=/sbin:/usr/sbin
+PATH="/sbin:/usr/sbin:/bin:/usr/bin"
 if systemctl start statd.service
 then :
 else
Signature · 1 line
1.9.0
#1 lore raw
Quoted 8 lines · Kinglong Mee

The 1.3.0 release adds a call to systemctl fails for it's in /usr/bin.

[root@localhost nfs-utils]# start-statd /usr/sbin/start-statd: line 9: systemctl: command not found Statd service already running!

Committed... Thanks!

steved.

Quoted 19 lines
---
 utils/statd/start-statd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/statd/start-statd +1 -2
index cde3583..8ac3798 100644
@@ -4,7 +4,7 @@
 # /var/run/rpc.statd.pid).
 # It should run statd with whatever flags are apropriate for this
 # site.
-PATH=/sbin:/usr/sbin
+PATH="/sbin:/usr/sbin:/bin:/usr/bin"
 if systemctl start statd.service
 then :
 else
-- 1.9.0