From 0d203f6b8f2a31cf98092b724f8d138d2aef6fb8 Mon Sep 17 00:00:00 2001
From: Chizi123 <joelgrun@gmail.com>
Date: Mon, 05 Aug 2019 14:22:31 +0000
Subject: [PATCH] added systemd units for building

---
 autobuild.service |    9 +++++++++
 autobuild.timer   |    9 +++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/autobuild.service b/autobuild.service
new file mode 100644
index 0000000..e62d848
--- /dev/null
+++ b/autobuild.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Autobuild repo service
+
+[Service]
+ExecStart=/data/repo/build_packages.sh
+Type=oneshot
+
+[Install]
+WantedBy=multi-user.target
diff --git a/autobuild.timer b/autobuild.timer
new file mode 100644
index 0000000..67a4471
--- /dev/null
+++ b/autobuild.timer
@@ -0,0 +1,9 @@
+[Unit]
+Description=Build repo on timer
+
+[Timer]
+OnCalendar=daily
+Persistent=true
+
+[Install]
+WantedBy=timers.target

--
Gitblit v1.9.3