[systemd-devel] Antw: [EXT] Re: User/Group overrides in a templated service triggered via timer

Kevin P. Fleming kevin at km6g.us
Mon Sep 7 18:19:35 UTC 2020


On Mon, Sep 7, 2020 at 11:58 AM Lennart Poettering
<lennart at poettering.net> wrote:
> Not sure I can parse this. Both timers and services are units in
> systemd. You can enable timer units, and you can enable service units,
> it all depends on what you put in their [Install] section. Sometimes
> it makes sense to add an [Install] section to one, sometimes to the
> other, sometimes to both, dependning on what the triggers should be
> that you want to use. Pretty often it might make sense to include just
> an Also=foobar.timer in the [Install] section of foobar.service, which
> then means that if the service is enabled, foobar.timer is enabled
> implicitly.

Hindsight being 20/20, it would probably have made more sense to users
if the command was 'systemctl install' since that would match the
section name in the unit file. It's a bit late for that now :-)


More information about the systemd-devel mailing list