summarylogtreecommitdiffstats
path: root/system.service
diff options
context:
space:
mode:
authorStorm dragon2015-09-18 15:12:38 -0400
committerStorm dragon2015-09-18 15:12:38 -0400
commit4d97adbb0089455e8ae97938d66a120a6cd60abd (patch)
treef0d602cff066191b3226119fd767d84e68184bef /system.service
downloadaur-4d97adbb0089455e8ae97938d66a120a6cd60abd.tar.gz
Initial commit, copied from the AUR 3.
Diffstat (limited to 'system.service')
-rw-r--r--system.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/system.service b/system.service
new file mode 100644
index 00000000000..f3e524d4e04
--- /dev/null
+++ b/system.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=XMMS2 daemon
+Documentation=man:xmms2-launcher(1) man:xmms2d(1)
+Wants=fluidsynth.service
+After=fluidsynth.service network.target sound.target
+
+[Service]
+Type=forking
+User=xmms2
+# Trick xmms2d into correctly using /var/lib/xmms2 for its configuration
+Environment=XDG_CONFIG_HOME=/var/lib
+PIDFile=%t/xmms2/xmms2d.pid
+ExecStart=/usr/bin/xmms2-launcher -l /var/log/xmms2d.log -P %t/xmms2/xmms2d.pid
+ExecStop=/usr/bin/xmms2 server shutdown
+
+[Install]
+WantedBy=multi-user.target