mirror of
https://github.com/YunoHost-Apps/peertube_ynh.git
synced 2024-09-03 19:56:29 +02:00
18 lines
384 B
Desktop File
18 lines
384 B
Desktop File
[Unit]
|
|
Description=PeerTube daemon
|
|
|
|
[Service]
|
|
Type=simple
|
|
Environment=NODE_ENV=production
|
|
Environment=NODE_CONFIG_DIR=__FINALPATH__/config
|
|
User=__APP__
|
|
Group=__APP__
|
|
ExecStart=/bin/sh -c 'PATH=/opt/node_n/bin:$PATH exec npm start'
|
|
WorkingDirectory=__FINALPATH__/
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=__APP__
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|