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

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