From 84b4f75298c21fb7d55d9842b57f1bf4cf57d687 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Fri, 25 Apr 2014 10:46:44 -0400 Subject: [PATCH] - Fix PATH problem in start-statd (bz 1088226) Signed-off-by: Steve Dickson --- nfs-utils-1.3.0-startstatd-path.patch | 29 +++++++++++++++++++++++++++ nfs-utils.spec | 9 ++++++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 nfs-utils-1.3.0-startstatd-path.patch diff --git a/nfs-utils-1.3.0-startstatd-path.patch b/nfs-utils-1.3.0-startstatd-path.patch new file mode 100644 index 0000000..47194f7 --- /dev/null +++ b/nfs-utils-1.3.0-startstatd-path.patch @@ -0,0 +1,29 @@ +commit edbbbe099bf4d4902f29d087239d6d159ac2187d +Author: Kinglong Mee +Date: Fri Apr 25 10:28:47 2014 -0400 + + 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! + + Reported-by: Allan Duncan + Signed-off-by: Kinglong Mee + Signed-off-by: Steve Dickson + +diff --git a/utils/statd/start-statd b/utils/statd/start-statd +index cde3583..8ac3798 100644 +--- a/utils/statd/start-statd ++++ b/utils/statd/start-statd +@@ -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 diff --git a/nfs-utils.spec b/nfs-utils.spec index 64e413c..ea10f04 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser Name: nfs-utils URL: http://sourceforge.net/projects/nfs Version: 1.3.0 -Release: 0.1%{?dist} +Release: 0.2%{?dist} Epoch: 1 # group all 32bit related archs @@ -14,6 +14,8 @@ Source1: id_resolver.conf Source2: nfs.sysconfig Source3: nfs-utils_env.sh +Patch001: nfs-utils-1.3.0-startstatd-path.patch + Patch100: nfs-utils-1.2.1-statdpath-man.patch Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch Patch102: nfs-utils-1.2.3-sm-notify-res_init.patch @@ -70,6 +72,8 @@ This package also contains the mount.nfs and umount.nfs program. %prep %setup -q +%patch001 -p1 + %patch100 -p1 %patch101 -p1 %patch102 -p1 @@ -277,6 +281,9 @@ fi /sbin/umount.nfs4 %changelog +* Fri Apr 25 2014 Steve Dickson 1.3.0-0.2 +- Fix PATH problem in start-statd (bz 1088226) + * Mon Apr 14 2014 Steve Dickson 1.3.0-0.1 - Incorporated new upstream systemd units