want to write a systemd service file where a user may not exist.

Peter Silva peter at bsqt.homeip.net
Sat Feb 11 12:49:34 UTC 2017


On Sat, Feb 11, 2017 at 7:31 AM, Ralf Mardorf <silver.bullet at zoho.com>
wrote:

> On Sat, 11 Feb 2017 12:07:13 +0000, Colin Law wrote:
> >If you run
> >sudo system enable|disable sarra
> >then you should see it adding or removing the links.
>
> Typo
> systemctl ;)
>
> However, if we install a package with a systemd unit, it automatically
> gets enable. You could test it, e.g. install smartmontools. A user who
> just want to get "smartctl" needs to manually disable the daemon. The
> Ubuntu policy is very bad, it's better to be aware of it, to avoid
> serious issues.
>
>
OK, so:

--  any idea how to tell systemd and/or ubuntu that this service should be
disabled by default?

and/or:

-- Any idea how to configure a systemd service such that if user X doesn't
exist, it does not try to start the service?



> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20170211/4f3b3f2f/attachment.html>


More information about the ubuntu-users mailing list