All of lore.kernel.org
 help / color / mirror / Atom feed
* usr/sbin vs usr/bin
@ 2019-03-26 17:33 Patrick Venture
  2019-03-27 10:43 ` Brad Bishop
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick Venture @ 2019-03-26 17:33 UTC (permalink / raw)
  To: Brad Bishop, OpenBMC Maillist

Brad,

Reading the anti-pattern, I was going to start moving some things out
of sbin and into bin, I had considered why not just leave out the path
in the service file (as a step 1) - since systemd which just load the
first match in path, but the anti-pattern above indicates we should
use the full path in the service file, to make sure it runs the
correct one -- at least that's how I am paraphrasing it.

Please advise.

Patrick

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

* Re: usr/sbin vs usr/bin
  2019-03-26 17:33 usr/sbin vs usr/bin Patrick Venture
@ 2019-03-27 10:43 ` Brad Bishop
  0 siblings, 0 replies; 2+ messages in thread
From: Brad Bishop @ 2019-03-27 10:43 UTC (permalink / raw)
  To: Patrick Venture; +Cc: OpenBMC Maillist

Hi Patrick

On Tue, Mar 26, 2019 at 10:33:01AM -0700, Patrick Venture wrote:
>Brad,
>
>Reading the anti-pattern, I was going to start moving some things out
>of sbin and into bin, 
Thank you!

>I had considered why not just leave out the path in the service file
>(as a step 1) - since systemd which just load the first match in path, 
Actually systemd doesn't go to the environment for this.  The
directories searched are described in systemd.service(5).

>but the anti-pattern above indicates we should use the full path in the
>service file, to make sure it runs the correct one -- at least that's
>how I am paraphrasing it.
Just because this is the recommendation in the systemd.service man page:

"it is thus safe to use just the executable name in case of executables
located in any of the "standard" directories, and an absolute path must
be used in other cases. Using an absolute path is recommended to avoid
ambiguity."

Also fully qualified paths seem to be the convention when I look at
other linux distros.

thx - brad

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

end of thread, other threads:[~2019-03-27 10:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-26 17:33 usr/sbin vs usr/bin Patrick Venture
2019-03-27 10:43 ` Brad Bishop

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.