summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2014-10-17 15:10:14 +0200
committerColin Guthrie <colin@mageia.org>2014-11-03 12:32:23 +0000
commite542e810041efef6497597ee55b4c7d5c349ba3e (patch)
tree177873af3587f65bcca0bdfb36049262a28df9c1 /src/daemon
parent42156d2b5ac797e5f28f8d0d38b691053f3f6fc7 (diff)
launch: Add systemd units for launching pulseaudio user instances
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/systemd/user/pulseaudio.service.in10
-rw-r--r--src/daemon/systemd/user/pulseaudio.socket10
2 files changed, 20 insertions, 0 deletions
diff --git a/src/daemon/systemd/user/pulseaudio.service.in b/src/daemon/systemd/user/pulseaudio.service.in
new file mode 100644
index 000000000..e08ff1efd
--- /dev/null
+++ b/src/daemon/systemd/user/pulseaudio.service.in
@@ -0,0 +1,10 @@
+[Unit]
+Description=Sound Service
+
+[Service]
+ExecStart=@PA_BINARY@ --daemonize=no
+Restart=on-failure
+
+[Install]
+Also=pulseaudio.socket
+WantedBy=default.target
diff --git a/src/daemon/systemd/user/pulseaudio.socket b/src/daemon/systemd/user/pulseaudio.socket
new file mode 100644
index 000000000..332ece893
--- /dev/null
+++ b/src/daemon/systemd/user/pulseaudio.socket
@@ -0,0 +1,10 @@
+[Unit]
+Description=Sound System
+
+[Socket]
+Priority=6
+Backlog=5
+ListenStream=%t/pulse/native
+
+[Install]
+WantedBy=sockets.target