summaryrefslogtreecommitdiffstats
path: root/systemd/etherpad.service
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/etherpad.service')
-rw-r--r--systemd/etherpad.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/systemd/etherpad.service b/systemd/etherpad.service
new file mode 100644
index 0000000..5bc093e
--- /dev/null
+++ b/systemd/etherpad.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=etherpad-lite
+After=syslog.target network.target
+
+[Service]
+Type=simple
+User=etherpad
+Group=etherpad
+WorkingDirectory=/opt/etherpad
+Environment=NODE_ENV=production
+Environment=PATH=/opt/etherpad/.nvm/versions/node/v16.4.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
+ExecStart=/opt/etherpad/.nvm/versions/node/v16.4.0/bin/node /opt/etherpad/etherpad-lite/src/node/server.js
+Restart=always
+
+[Install]
+WantedBy=multi-user.target