diff --git a/etc/systemd/system/etherpad-lite.service b/etc/systemd/system/etherpad-lite.service new file mode 100644 index 00000000..8f0dd43a --- /dev/null +++ b/etc/systemd/system/etherpad-lite.service @@ -0,0 +1,16 @@ +[Unit] +Description=Etherpad lite +After=network.target + +[Service] +# From README, add `-s path-to-settings` +ExecStart=/home/mikaela/src/github.com/ether/etherpad-lite/bin/run.sh +# I am not sure how much Etherpad cares about working dir, but just in case +WorkingDirectory=/home/mikaela/src/github.com/ether/etherpad-lite +# bin/run.sh told me to do this +Environment="NODE_ENV=production" +Restart=always +User=CHANGEME + +[Install] +WantedBy=default.target