Clean up systemd units

Use Type=oneshot for the service and drop the default Restart=no.
Remove Persistent=true from the timer, which only applies to
OnCalendar= timers.
This commit is contained in:
Daniele Fucini
2026-10-07 19:45:47 +02:00
parent 5b877e76df
commit c93ce8e9bc
2 changed files with 1 additions and 3 deletions
+1 -2
View File
@@ -3,5 +3,4 @@ Description=Notify if updates are available
[Service] [Service]
ExecStart=/usr/bin/update-notify 30 ExecStart=/usr/bin/update-notify 30
Type=simple Type=oneshot
Restart=no
-1
View File
@@ -4,7 +4,6 @@ Description=Run update-notify every 6 hours
[Timer] [Timer]
OnBootSec=5min OnBootSec=5min
OnUnitActiveSec=6h OnUnitActiveSec=6h
Persistent=true
[Install] [Install]
WantedBy=timers.target WantedBy=timers.target