Use Type=oneshot for the service and drop the default Restart=no. Remove Persistent=true from the timer, which only applies to OnCalendar= timers.
10 lines
128 B
SYSTEMD
10 lines
128 B
SYSTEMD
[Unit]
|
|
Description=Run update-notify every 6 hours
|
|
|
|
[Timer]
|
|
OnBootSec=5min
|
|
OnUnitActiveSec=6h
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|