From 468892541175f9662f8b1b977e819dc1a496f282 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Jun 2016 15:58:04 +0200 Subject: Add systemd file example --- support/systemd/peertube.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 support/systemd/peertube.service (limited to 'support/systemd') 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 -- cgit v1.2.3