mirror of
https://github.com/edu4rdshl/linuxscripts.git
synced 2026-07-18 07:34:45 +00:00
Add ArchLinux automatically update services
This commit is contained in:
parent
79abb75e42
commit
dd2f34dcdf
2 changed files with 22 additions and 0 deletions
13
systemd-user-units/user/actualizar.service
Normal file
13
systemd-user-units/user/actualizar.service
Normal 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
|
||||
9
systemd-user-units/user/actualizar.timer
Normal file
9
systemd-user-units/user/actualizar.timer
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue