summarylogtreecommitdiffstats
path: root/plexpy.service
diff options
context:
space:
mode:
Diffstat (limited to 'plexpy.service')
-rw-r--r--plexpy.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/plexpy.service b/plexpy.service
new file mode 100644
index 000000000000..976e2927a62a
--- /dev/null
+++ b/plexpy.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=PlexPy Service
+
+[Service]
+User=plexpy
+Group=plexpy
+GuessMainPID=no
+Type=forking
+
+PermissionsStartOnly=true
+ExecStartPre=-/usr/bin/mkdir /var/lib/plexpy
+ExecStartPre=/usr/bin/chown -R plexpy:plexpy /var/lib/plexpy/
+ExecStart=/usr/bin/python2 /opt/plexpy/PlexPy.py --quiet --daemon --nolaunch --config /var/lib/plexpy/config.ini --datadir /var/lib/plexpy --nolaunch
+
+[Install]
+WantedBy=default.target