From c91b1b97a9ef2a9390de73428d9c2d045e94158d Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 29 Aug 2019 13:10:55 +0300 Subject: [PATCH] systemd/system: add unit file for etherpad-lite Closes: #27 --- etc/systemd/system/etherpad-lite.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 etc/systemd/system/etherpad-lite.service 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