I'm using the sh -c exec idiom in an ExecStart statement (in a service unit file) to interpolate some shell commands. For example:ExecStart=/bin/sh -ec exec /usr/bin/foo $(/usr/bin/foo-config)It works great. However, when I look at the journal for this service, the process name is sh instead of foo. Is there a way to lie about the process name using this idiom?
systemd: lie about process name using sh -c exec idiom
systemd;journald
Ah, this turned out to be much easier than I thought it would be. Found an answer here: https://unix.stackexchange.com/a/229525/11995!SyslogIdentifer=foo