summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p2pvr/etc/systemd/p2pvrcardd.service16
-rw-r--r--p2pvr/etc/systemd/p2pvrd.service17
2 files changed, 33 insertions, 0 deletions
diff --git a/p2pvr/etc/systemd/p2pvrcardd.service b/p2pvr/etc/systemd/p2pvrcardd.service
new file mode 100644
index 0000000..4ac9088
--- /dev/null
+++ b/p2pvr/etc/systemd/p2pvrcardd.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Project2 PVR Card Daemon
+
+[Service]
+User=p2pvr
+Group=video
+Type=simple
+StandardOutput=journal
+StandardError=journal
+Restart=always
+StartLimitInterval=10
+StartLimitBurst=5
+ExecStart=/usr/bin/p2daemon --library libp2pvrcarddaemon.so --daemon.type p2pvrcarddaemon --file.options.read /etc/p2pvr/p2config
+
+[Install]
+WantedBy=multi-user.target
diff --git a/p2pvr/etc/systemd/p2pvrd.service b/p2pvr/etc/systemd/p2pvrd.service
new file mode 100644
index 0000000..d42aff9
--- /dev/null
+++ b/p2pvr/etc/systemd/p2pvrd.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Project2 PVR Daemon
+After=postgresql-9.4.service
+
+[Service]
+User=p2pvr
+Group=video
+Type=simple
+StandardOutput=journal
+StandardError=journal
+Restart=always
+StartLimitInterval=10
+StartLimitBurst=5
+ExecStart=/usr/bin/p2daemon --library libp2pvrdaemon.so --daemon.type p2pvrdaemon --file.options.read /etc/p2pvr/p2config
+
+[Install]
+WantedBy=multi-user.target