Added service and timer to dl packages hourly
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
2e34130236
commit
c13916c1f5
3 changed files with 23 additions and 0 deletions
10
root/etc/systemd/system/pacman-dl.service
Executable file
10
root/etc/systemd/system/pacman-dl.service
Executable file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Download package updates
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/pacman -Syuw --noconfirm
|
||||
|
||||
[Install]
|
||||
WantedBy=network-online.target
|
5
root/etc/systemd/system/pacman-dl.timer
Normal file
5
root/etc/systemd/system/pacman-dl.timer
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Unit]
|
||||
Description=Download packages hourly
|
||||
|
||||
[Timer]
|
||||
OnCalendar=hourly
|
Loading…
Add table
Add a link
Reference in a new issue