Add Systemd templates

This commit is contained in:
Alexandre CATTEAU 2022-08-28 12:10:27 +02:00
parent c79a2f83e1
commit 6ed81cd85c
3 changed files with 23 additions and 0 deletions

View 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

View File

@ -0,0 +1,6 @@
[Unit]
Description=Run Pacman to upgrade packages
[Service]
Type=oneshot
ExecStart=/usr/bin/pacman -Syu --noconfirm

View 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