feat: add feature to update cachyOS in the background
This commit is contained in:
16
systemd/cachyos-updater.timer
Normal file
16
systemd/cachyos-updater.timer
Normal file
@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=CachyOS Updater - Vérification périodique des mises à jour
|
||||
Requires=cachyos-updater.service
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Timer]
|
||||
# Lancer dès que le réseau est disponible au démarrage
|
||||
OnBootSec=30s
|
||||
# Puis toutes les heures après la dernière exécution
|
||||
OnUnitInactiveSec=1h
|
||||
Unit=cachyos-updater.service
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user