Add systemd unit file

This commit is contained in:
Christoph Wiechert
2017-05-11 20:57:45 +02:00
parent 499aa804ca
commit 41059158db

18
docs/psitransfer.service Normal file
View File

@@ -0,0 +1,18 @@
[Unit]
Description=PsiTransfer
Documentation=https://github.com/psi-4ward/psitransfer
After=network.target
[Service]
Type=simple
User=psitransfer
Restart=on-failure
Environment=NODE_ENV=production
Environment=PSITRANSFER_PORT=8080
WorkingDirectory=/opt/psitransfer
ExecStart=/usr/bin/node app.js
[Install]
WantedBy=multi-user.target