want to write a systemd service file where a user may not exist.
Ralf Mardorf
silver.bullet at zoho.com
Sat Feb 11 11:48:52 UTC 2017
On Fri, 10 Feb 2017 09:04:14 -0500, Peter Silva wrote:
> I don't want to create the daemon user on systems where
> it will only be used as a client, so in many cases the 'user'
> specified in the service file will not exist. How to cleanly handle
> that?
Hi,
the Ubuntu policy is to auto-start everything that could be
auto-started, so you most likely need to chose another path to install
the unit.
Instead of
/lib/systemd/system/foo.service
install it to e.g.
/usr/share/doc/foo/examples/foo.service
Regards,
Ralf
More information about the ubuntu-users
mailing list