Skip to content

Instantly share code, notes, and snippets.

@phoenixthrush
Created April 13, 2024 19:22
Show Gist options
  • Save phoenixthrush/ded3c3a98084b2c0a07180850fd033c4 to your computer and use it in GitHub Desktop.
Save phoenixthrush/ded3c3a98084b2c0a07180850fd033c4 to your computer and use it in GitHub Desktop.
Arch Linux Autoupdate
/etc/systemd/system/autoupdate.service
/etc/systemd/system/autoupdate.timer
systemctl enable --now /etc/systemd/system/autoupdate.timer
[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
[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