summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkgsync-ng-nt.service9
-rw-r--r--pkgsync-ng-nt.timer11
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