peertube_ynh/conf/systemd.service
Pierre-Antoine Rault 69be43b53c Update to latest release
Instead of relying on the `develop` branch of PeerTube, rely on the
releases. This implies a few changes in the way we launch PeerTube and
since then, a few configuration options and dependencies have been
added.
2018-02-28 16:41:02 +01:00

18 lines
336 B
Desktop File

[Unit]
Description=PeerTube daemon
[Service]
Type=simple
Environment=NODE_ENV=production
User=__APP__
Group=__APP__
ExecStart=/bin/sh -c 'PATH=/opt/node_n/bin:$PATH exec npm start'
WorkingDirectory=__FINALPATH__/
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=peertube
Restart=always
[Install]
WantedBy=multi-user.target