Add systemd file example

pull/10/head
Chocobozzz 2016-06-03 15:58:04 +02:00
parent 5d4e941100
commit 4688925411
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=PeerTube daemon
[Service]
Type=simple
Environment=NODE_ENV=production
User=myuser
Group=myuser
ExecStart=/usr/bin/node server
WorkingDirectory=/path/to/peertube
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=peertube
Restart=always
[Install]
WantedBy=multi-user.target