Add systemd file example
This commit is contained in:
parent
5d4e941100
commit
4688925411
1 changed files with 17 additions and 0 deletions
17
support/systemd/peertube.service
Normal file
17
support/systemd/peertube.service
Normal 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
|
Loading…
Reference in a new issue