Add ArchLinux automatically update services

This commit is contained in:
Eduard Tolosa 2018-11-06 22:49:08 -05:00
parent 79abb75e42
commit dd2f34dcdf
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description=Automatically update ArchLinux
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/pacman -Syuq --noconfirm
TimeoutStopSec=180
KillMode=process
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,9 @@
[Unit]
Description=Automatically update ArchLinux. 5 minutes before the system boot the first check is done, then it look for updates every 60 minutes
[Timer]
OnBootSec=5min
OnUnitActiveSec=60min
Unit=actualizar.service
[Install]
WantedBy=multi-user.target