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

Colin Law clanlaw at gmail.com
Sat Feb 11 13:28:25 UTC 2017


On 11 February 2017 at 12:31, 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 ;)

Thanks

>
> 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.

As Oliver has pointed out it depends how it is installed (though until
he provided the details I was unsure of what the difference is -
thanks Oli). Plenty of packages install not enabled. If I remember
correctly nodered is an example.  So I don't think it is an Ubuntu
policy, it is up to the individual package maintainer.

Colin



More information about the ubuntu-users mailing list