summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2014-02-19 13:48:03 +0100
committertv <tv@nomic.retiolum>2014-02-19 13:49:38 +0100
commit2ce39803bf71bd49503ee8a6d81d73091883b465 (patch)
tree934dd40b3c592297bcab6a355dbfa2e1cb03f118 /retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service
parentbcc7aefa1c6fb999992c07327e1df9456814a283 (diff)
hosts sync: add systemd files
Diffstat (limited to 'retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service')
-rw-r--r--retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service b/retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service
new file mode 100644
index 00000000..60d4799f
--- /dev/null
+++ b/retiolum/scripts/github_hosts_sync/systemd/hosts-sync.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=retiolum github hosts sync
+After=network.target
+
+[Service]
+EnvironmentFile=/etc/conf.d/retiolum-github-hosts-sync.conf
+ExecStart=/krebs/retiolum/scripts/github_hosts_sync/index
+KillMode=process
+User=hosts-sync
+Group=hosts-sync
+Restart=yes
+
+[Install]
+WantedBy=multi-user.target
+