26.08.2019 23:17, Brüns, Stefan пишет:
You don't want multiple timers, you want one timer triggering two services:
$> cat /etc/systemd/system/logdigestrotate.service [Unit] Description=LogDigest and Rotate Wants=logdigest.service logrotate.service After=logdigest.service logrotate.service [Install] Also=logdigestrotate.timer
bor@bor-Latitude-E5450:~/src/NetworkManager$ systemctl --user start test-empty-service Failed to start test-empty-service.service: Unit test-empty-service.service is not loaded properly: Invalid argument. See user logs and 'systemctl --user status test-empty-service.service' for details. bor@bor-Latitude-E5450:~/src/NetworkManager$ systemctl --user --no-pager status -l test-empty-service ● test-empty-service.service - LogDigest and Rotate Loaded: error (Reason: Invalid argument) Active: inactive (dead) авг 27 07:33:39 bor-Latitude-E5450 systemd[1409]: test-empty-service.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. авг 27 07:33:53 bor-Latitude-E5450 systemd[1409]: test-empty-service.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. авг 27 07:34:13 bor-Latitude-E5450 systemd[1409]: test-empty-service.service: Service lacks both ExecStart= and ExecStop= setting. Refusing. And do not tell me that forcing to add yet another unit definition is an improvement. And what if two timers come from different packages? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org