Add Systemd templates
This commit is contained in:
parent
c79a2f83e1
commit
6ed81cd85c
7
systemd-templates/packages-upgrade-apt.service
Normal file
7
systemd-templates/packages-upgrade-apt.service
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run APT to upgrade packages
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStartPre=/usr/bin/apt-get update
|
||||||
|
ExecStart=/usr/bin/apt-get upgrade -y
|
6
systemd-templates/packages-upgrade-pacman.service
Normal file
6
systemd-templates/packages-upgrade-pacman.service
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run Pacman to upgrade packages
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/pacman -Syu --noconfirm
|
10
systemd-templates/packages-upgrade.timer
Normal file
10
systemd-templates/packages-upgrade.timer
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run packages-upgrade daily
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
Unit=packages-upgrade.service
|
||||||
|
OnCalendar=*-*-* 07:00:00
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user