add etherpad role
[ansible.git] / roles / etherpad / templates / etherpad-lite.service
diff --git a/roles/etherpad/templates/etherpad-lite.service b/roles/etherpad/templates/etherpad-lite.service
new file mode 100644 (file)
index 0000000..3673f30
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=etherpad-lite (real-time collaborative document editing)
+After=syslog.target network.target
+
+[Service]
+Type=simple
+User=nodejs
+Group=nogroup
+Environment=NODE_ENV=production
+ExecStart=/srv/{{etherpad.domain}}/etherpad-lite/bin/run.sh
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target