summaryrefslogtreecommitdiffstats
path: root/roles/pad/templates/etherpad.service
diff options
context:
space:
mode:
authorOpal <847966@proton.me>2022-10-15 15:27:41 -0700
committerOpal <847966@proton.me>2022-10-15 15:27:41 -0700
commita287e741842f67d0a04c48276221d85f16079d55 (patch)
tree2db596b4ba6709fe10168942bcd0fc5ed2850d02 /roles/pad/templates/etherpad.service
parentd86946ec21f2175d3a5aad58c1ae236291c74b7a (diff)
downloademacsconf-ansible-a287e741842f67d0a04c48276221d85f16079d55.tar.xz
emacsconf-ansible-a287e741842f67d0a04c48276221d85f16079d55.zip
merging code between old emacsconf repo, to sachac's emacsconf repo
Diffstat (limited to 'roles/pad/templates/etherpad.service')
-rw-r--r--roles/pad/templates/etherpad.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/pad/templates/etherpad.service b/roles/pad/templates/etherpad.service
new file mode 100644
index 0000000..f8e947d
--- /dev/null
+++ b/roles/pad/templates/etherpad.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=Etherpad
+After=syslog.target network.target
+
+[Service]
+Type=simple
+User={{ etherpad_user }}
+Group={{ etherpad_group }}
+WorkingDirectory={{ etherpad_path }}
+ExecStart=node {{ etherpad_path }}/node_modules/ep_etherpad-lite/node/server.js
+Environment=NODE_ENV=production
+Restart=always
+
+[Install]
+WantedBy=multi-user.target