summarylogtreecommitdiffstats
path: root/mpdrandom-system.service
diff options
context:
space:
mode:
authorCedric Girard2021-09-02 16:06:19 +0200
committerCedric Girard2021-09-02 16:06:19 +0200
commit342f4ccef2b4b497930f59371a3f0126aa5ac734 (patch)
treea89e7e88b2a447f732287a7b03fc25852cff2028 /mpdrandom-system.service
parentf0c1cb4fdfc0c869bc90e5e926fe722560ebf319 (diff)
downloadaur-mpdrandom-git.tar.gz
upgpkg: mpdrandom-git 1.3.0.r4.gacc37ed-2
add system systemd unit
Diffstat (limited to 'mpdrandom-system.service')
-rw-r--r--mpdrandom-system.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/mpdrandom-system.service b/mpdrandom-system.service
new file mode 100644
index 000000000000..77178e38d267
--- /dev/null
+++ b/mpdrandom-system.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Play a random album in mpd
+After=mpd.service
+
+[Service]
+User=mpd
+ExecStart=/usr/bin/mpdrandom -d -l
+
+[Install]
+WantedBy=multi-user.target