]] Christian Seiler > On 01/08/2016 09:41 AM, Marc Haber wrote: > > On Wed, 06 Jan 2016 00:03:31 +0100, Philipp Kern <pk...@debian.org> > > wrote: > >> On 2016-01-04 11:30, Marc Haber wrote: > >>> On Sun, 3 Jan 2016 22:30:24 +0100, Eric Valette <eric.vale...@free.fr> > >>> wrote: > >>>> System admins do like using absolute path > >>>> for security reasons... > >>> Please also notice that this is the only option for ExecStart in > >>> systemd units. Well played, Lennart. > >> > >> Similarly skeleton-based init scripts use the full path as well. It > >> helps if you can stat() it. Which, I guess, you could by extension by > >> using "which" and the like. > > > > In init scripts, I can do that. In a systemd unit, I cannot. > > ExecStart=/bin/sh -c "something"
This, or «ExecStart=/usr/bin/env food bar baz» This is, as folks might have noticed, exactly the same limitation and workaround as we have for #! lines in scripts. -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are