aboutsummaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorLasse Haugen <haugen.lasse@gmail.com>2019-02-12 11:02:48 +0100
committerLasse Haugen <haugen.lasse@gmail.com>2019-02-12 11:02:48 +0100
commite945540c2f55b67119db19ed1a60ca4dbec59ace (patch)
tree563e687f7b0276bb0203a4004fda90676d827019 /ansible
parentfd6a6a180a234f569b2977ae44adbc264eab4807 (diff)
Update service file
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/web/files/gondul-template.service5
-rw-r--r--ansible/roles/web/files/template.service15
2 files changed, 3 insertions, 17 deletions
diff --git a/ansible/roles/web/files/gondul-template.service b/ansible/roles/web/files/gondul-template.service
index edde9a3..148e374 100644
--- a/ansible/roles/web/files/gondul-template.service
+++ b/ansible/roles/web/files/gondul-template.service
@@ -1,11 +1,12 @@
[Unit]
Description=Gondul Templating
-Documentation=http://google.com
+Documentation=https://github.com/gathering/gondul
After=network-online.target
[Service]
ExecStart=/opt/gondul/templating/templating.py -h ::1 -p 8081 -t /opt/gondul/web/templates/
-MountFlags=slave
+ExecReload=/usr/bin/kill -HUP $MAINPID
+Restart=on-failure
[Install]
WantedBy=multi-user.target
diff --git a/ansible/roles/web/files/template.service b/ansible/roles/web/files/template.service
deleted file mode 100644
index b33b8b8..0000000
--- a/ansible/roles/web/files/template.service
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=Gondul Templating
-Documentation=http://google.com
-After=network.target
-
-[Service]
-ExecStart=/opt/gondul/templating/templating.py -h ::1 -p 8081
-MountFlags=slave
-LimitNOFILE=1048576
-LimitNPROC=1048576
-LimitCORE=infinity
-
-[Install]
-WantedBy=multi-user.target
-