2016-06-03 08:58:04 -05:00
|
|
|
[Unit]
|
|
|
|
Description=PeerTube daemon
|
2018-07-26 14:01:34 -05:00
|
|
|
After=network.target postgresql.service redis-server.service
|
2016-06-03 08:58:04 -05:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Environment=NODE_ENV=production
|
2018-01-23 02:00:23 -06:00
|
|
|
Environment=NODE_CONFIG_DIR=/var/www/peertube/config
|
2018-01-15 10:56:58 -06:00
|
|
|
User=peertube
|
|
|
|
Group=peertube
|
2017-06-20 13:34:41 -05:00
|
|
|
ExecStart=/usr/bin/npm start
|
2018-01-23 02:00:23 -06:00
|
|
|
WorkingDirectory=/var/www/peertube/peertube-latest
|
2016-06-03 08:58:04 -05:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=peertube
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|