summaryrefslogtreecommitdiff
path: root/baserock_webserver/hastebin
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2017-10-24 10:14:56 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-10-24 16:51:00 +0000
commit94805485673f88abc4d48674725220df7f6111c8 (patch)
tree4a10b0ef3fa68b605e5838aae07c9e778bfffb63 /baserock_webserver/hastebin
parent8ec978fc106cf7c2b7031915d8ad4f3cfd5f0aa3 (diff)
downloadinfrastructure-94805485673f88abc4d48674725220df7f6111c8.tar.gz
baserock_webserver: Install Haste server
Diffstat (limited to 'baserock_webserver/hastebin')
-rw-r--r--baserock_webserver/hastebin/haste-server.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/baserock_webserver/hastebin/haste-server.service.in b/baserock_webserver/hastebin/haste-server.service.in
new file mode 100644
index 00000000..1da2c588
--- /dev/null
+++ b/baserock_webserver/hastebin/haste-server.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description = Haste server
+
+[Service]
+Type = simple
+WorkingDirectory={{ haste_server_install_location }}
+ExecStart = /usr/bin/node {{ haste_server_install_location }}/server.js
+User = hastebin
+Group = hastebin
+Restart = on-failure
+
+[Install]
+WantedBy=default.target