ExecStart line in systemd service files.

Lennart Poettering mzerqung at 0pointer.de
Fri Aug 9 15:12:31 UTC 2013


On Thu, 08.08.13 20:55, আনন্দ কুমার সমাদ্দার Ananda Samaddar (asamaddar at myopera.com) wrote:

> Hello all,
> 
> I'm in the process of packaking kwakd for Fedora.  On the user list
> Rahul Sundaram mentioned that the service file should not use a
> hardcoded path to the binary.
> 
> Previously the ExecStart line read like this:
> 
> ExecStart=/usr/bin/kwakd -p 80 

This looks right.

> 
> After speaking to upstream and passing on Rahul's comments upstream
> changed it to this:
> 
> ExecStart=kwakd -p 80  

This looks wrong.
> 
> However when using the service file with the above line kwakd fails to
> start.  I've had a quick look at some already installed service files
> and they all seem to include the full path to the binary.
> 
> Can someone tell me what the correct line should be taking into account
> Rahul's comment?

ExecStart= requires a full absolute path. Anything else is not allowed.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the devel mailing list