summarylogtreecommitdiffstats
path: root/youtube-mpv.service
diff options
context:
space:
mode:
Diffstat (limited to 'youtube-mpv.service')
-rw-r--r--youtube-mpv.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/youtube-mpv.service b/youtube-mpv.service
new file mode 100644
index 000000000000..5bfcf22d6892
--- /dev/null
+++ b/youtube-mpv.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Youtube-mpv
+
+[Service]
+Type=simple
+Environment=DISPLAY=:0
+ExecStart=/opt/youtube-mpv-git/ytdl_server.py
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=default.target