want to write a systemd service file where a user may not exist.
silver.bullet at zoho.com
Sat Feb 11 12:53:54 UTC 2017
> On 11 Feb 2017, at 13:49, Peter Silva <peter at bsqt.homeip.net> wrote:
>> 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.
>> 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?
> -- Any idea how to configure a systemd service such that if user X doesn't exist, it does not try to start the service?
I didn't know what Oli mentioned. Have you tried it that way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users