From 33f310f3e84ea69dddf52c06ec85ff9607a9b10b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 18 Jun 2015 21:33:55 +0100 Subject: Add systemd services --- p2pvr/etc/systemd/p2pvrcardd.service | 16 ++++++++++++++++ p2pvr/etc/systemd/p2pvrd.service | 17 +++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 p2pvr/etc/systemd/p2pvrcardd.service create mode 100644 p2pvr/etc/systemd/p2pvrd.service 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 -- cgit v1.2.3