From 3be308fe0ccd820514f68423c31b3fdddc87cb7d Mon Sep 17 00:00:00 2001 From: herkulessi Date: Thu, 30 Apr 2026 16:45:14 +0200 Subject: Add systemd-units --- pkgsync-ng-nt.service | 9 +++++++++ pkgsync-ng-nt.timer | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pkgsync-ng-nt.service create mode 100644 pkgsync-ng-nt.timer diff --git a/pkgsync-ng-nt.service b/pkgsync-ng-nt.service new file mode 100644 index 0000000..726b900 --- /dev/null +++ b/pkgsync-ng-nt.service @@ -0,0 +1,9 @@ +[Unit] +Description=Run pkgsync-ng-nt + + +[Service] +Nice=19 +Environment=HOME=/root +ExecStart=/usr/local/sbin/pkgsync-ng-nt +Restart=on-failure diff --git a/pkgsync-ng-nt.timer b/pkgsync-ng-nt.timer new file mode 100644 index 0000000..03cde74 --- /dev/null +++ b/pkgsync-ng-nt.timer @@ -0,0 +1,11 @@ +[Unit] +Description="Run pkgsync-ng-nt periodicallly" + +[Timer] +OnBootSec=5min +OnUnitActiveSec=24h +OnCalendar=*-*-* 04:00:00 +Unit=pkgsync-ng-nt.service + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3