systemd/system: add unit file for etherpad-lite

Closes: #27
This commit is contained in:
Aminda Suomalainen 2019-08-29 13:10:55 +03:00
parent 319ae6c2bf
commit c91b1b97a9
No known key found for this signature in database
GPG Key ID: 0C207F07B2F32B67
1 changed files with 16 additions and 0 deletions

View File

@ -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