diff options
| author | herkulessi <git@herkulessi.de> | 2026-04-30 16:45:14 +0200 |
|---|---|---|
| committer | herkulessi <git@herkulessi.de> | 2026-04-30 16:45:14 +0200 |
| commit | 3be308fe0ccd820514f68423c31b3fdddc87cb7d (patch) | |
| tree | 336c08b26674554be136588a8726161e91d77c04 | |
| parent | b9f85117b0ded60e424acde5b5fa05fcab103323 (diff) | |
Add systemd-units
| -rw-r--r-- | pkgsync-ng-nt.service | 9 | ||||
| -rw-r--r-- | pkgsync-ng-nt.timer | 11 |
2 files changed, 20 insertions, 0 deletions
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 |
