grefabu hat geschrieben: 30.05.2023 13:51:16
Oder fehlr mir da noch das Verständnis?
Anscheinend ja
Ein Timer startet normalerweise einen Service, der einfach genauso heißt, wie der Timer. Deshalb wird der Name der zu startenden Unit eigentlich nie angegeben. Eine Ausnahme ist, wenn man z.B. ein Target von einem Timer starten lassen will, wie es etwa
cron-daily.timer aus
systemd-cron tut. Das muss dann explizit mit dem Parameter
Unit= angeben werden.
Siehe die Manpage zu systemd.timer für mehr Beschreibung:
man systemd.timer hat geschrieben:
For each timer file, a matching unit file must exist, describing the unit to activate when the timer elapses. By default, a
service by the same name as the timer (except for the suffix) is activated. Example: a timer file foo.timer activates a matching
service foo.service. The unit to activate may be controlled by Unit= (see below).