Добавлен юнит для systemd
[vpproxy.git] / systemd / vpproxy.service
diff --git a/systemd/vpproxy.service b/systemd/vpproxy.service
new file mode 100644 (file)
index 0000000..77fae2b
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=Video Transcoding Proxy
+Requires=network.target
+After=network.target
+
+[Service]
+User=root
+Type=simple
+PIDFile=/var/run/vpproxy.pid
+ExecStart=/usr/local/bin/vpproxy
+Restart=always
+RestartSec=60s
+
+[Install]
+WantedBy=multi-user.target