From: Chocobozzz Date: Fri, 3 Jun 2016 13:58:04 +0000 (+0200) Subject: Add systemd file example X-Git-Tag: v0.0.1-alpha~883 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=468892541175f9662f8b1b977e819dc1a496f282;p=github%2FChocobozzz%2FPeerTube.git Add systemd file example --- diff --git a/support/systemd/peertube.service b/support/systemd/peertube.service new file mode 100644 index 000000000..8aaa2e6e3 --- /dev/null +++ b/support/systemd/peertube.service @@ -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