2017-12-08 00:35:52 +01:00
|
|
|
[Unit]
|
|
|
|
Description=PeerTube daemon
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Environment=NODE_ENV=production
|
2018-03-26 05:50:46 +02:00
|
|
|
Environment=NODE_CONFIG_DIR=__FINALPATH__/config
|
2017-12-08 00:35:52 +01:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2018-02-28 16:41:02 +01:00
|
|
|
ExecStart=/bin/sh -c 'PATH=/opt/node_n/bin:$PATH exec npm start'
|
2017-12-08 00:35:52 +01:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2017-12-11 05:28:25 +01:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2018-03-26 05:50:46 +02:00
|
|
|
SyslogIdentifier=__APP__
|
2017-12-08 00:35:52 +01:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|