Created
April 13, 2024 19:22
-
-
Save phoenixthrush/ded3c3a98084b2c0a07180850fd033c4 to your computer and use it in GitHub Desktop.
Arch Linux Autoupdate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc/systemd/system/autoupdate.service | |
/etc/systemd/system/autoupdate.timer | |
systemctl enable --now /etc/systemd/system/autoupdate.timer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Automatic Update | |
After=network-online.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/pacman -Syuq --noconfirm | |
TimeoutStopSec=180 | |
KillMode=process | |
KillSignal=SIGINT | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Automatic Update when booted up after 5 minutes then check the system for updates every 60 minutes | |
[Timer] | |
OnBootSec=5min | |
OnUnitActiveSec=60min | |
Unit=autoupdate.service | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment