linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nfs-utils/systemd] systemd: add PATH for finding systemctl
@ 2014-04-25  3:05 Kinglong Mee
  2014-04-25 14:30 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Kinglong Mee @ 2014-04-25  3:05 UTC (permalink / raw)
  To: Steve Dickson, linux-nfs

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 <amd1234@fastmail.com.au>
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
 utils/statd/start-statd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
1.9.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH nfs-utils/systemd] systemd: add PATH for finding systemctl
  2014-04-25  3:05 [PATCH nfs-utils/systemd] systemd: add PATH for finding systemctl Kinglong Mee
@ 2014-04-25 14:30 ` Steve Dickson
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Dickson @ 2014-04-25 14:30 UTC (permalink / raw)
  To: Kinglong Mee, linux-nfs



On 04/24/2014 11:05 PM, Kinglong Mee wrote:
> 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 <amd1234@fastmail.com.au>
> Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Committed... Thanks!

steved.

> ---
>  utils/statd/start-statd | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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
> -- 1.9.0
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-25 14:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-25  3:05 [PATCH nfs-utils/systemd] systemd: add PATH for finding systemctl Kinglong Mee
2014-04-25 14:30 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).