[systemd-devel] Is there a way to change the program name in a service file?

Dave Reisner d at falconindy.com
Sat Dec 29 10:24:43 PST 2012


On Sat, Dec 29, 2012 at 06:24:43PM +0100, Thomas Meyer wrote:
> Hi,
> 
> I want to basically do a "exec -a coolName /usr/bin/java 1 2 3" in a
> systemd service file. Is this supported?
> 
> with kind regards
> thomas
> 

To quote systemd.service(5):

 Optionally, if the absolute file name is prefixed with '@', the second
 token will be passed as argv[0] to the executed process, followed by the
 further arguments specified.

d


More information about the systemd-devel mailing list