Blame SOURCES/nfs-utils-1.3.0-mountd-start-statd-path.patch

4f2874
commit edbbbe099bf4d4902f29d087239d6d159ac2187d
4f2874
Author: Kinglong Mee <kinglongmee@gmail.com>
4f2874
Date:   Fri Apr 25 10:28:47 2014 -0400
4f2874
4f2874
    systemd: add PATH for finding systemctl
4f2874
    
4f2874
    The 1.3.0 release adds a call to systemctl fails for it's in /usr/bin.
4f2874
    
4f2874
    [root@localhost nfs-utils]# start-statd
4f2874
    /usr/sbin/start-statd: line 9: systemctl: command not found
4f2874
    Statd service already running!
4f2874
    
4f2874
    Reported-by: Allan Duncan <amd1234@fastmail.com.au>
4f2874
    Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
4f2874
    Signed-off-by: Steve Dickson <steved@redhat.com>
4f2874
4f2874
diff --git a/utils/statd/start-statd b/utils/statd/start-statd
4f2874
index cde3583..8ac3798 100644
4f2874
--- a/utils/statd/start-statd
4f2874
+++ b/utils/statd/start-statd
4f2874
@@ -4,7 +4,7 @@
4f2874
 # /var/run/rpc.statd.pid).
4f2874
 # It should run statd with whatever flags are apropriate for this
4f2874
 # site.
4f2874
-PATH=/sbin:/usr/sbin
4f2874
+PATH="/sbin:/usr/sbin:/bin:/usr/bin"
4f2874
 if systemctl start statd.service
4f2874
 then :
4f2874
 else