summaryrefslogtreecommitdiffstats
path: root/src/canberra-system-bootup.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-09 22:35:00 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-09 22:35:00 +0100
commit786b4b05dc1bfc725995f4c2556d49aec5e2ae1b (patch)
tree434e8f6e016cf8e0e20645db8d62b3bc9b070fc1 /src/canberra-system-bootup.service.in
parentdfd5e05f01dd4d28bc6c5ebc3c991404723bc076 (diff)
systemd: add unit for bootup and shutdown sounds
Diffstat (limited to 'src/canberra-system-bootup.service.in')
-rw-r--r--src/canberra-system-bootup.service.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/canberra-system-bootup.service.in b/src/canberra-system-bootup.service.in
new file mode 100644
index 0000000..490b6b8
--- /dev/null
+++ b/src/canberra-system-bootup.service.in
@@ -0,0 +1,18 @@
+[Unit]
+Description=Play Bootup Sound
+DefaultDependencies=no
+After=alsa-restore.service
+Before=shutdown.target
+Conflicts=shutdown.target
+
+# A little optimization under the assumption that we are using the
+# standard freedesktop theme
+ConditionPathExists=/usr/share/sounds/freedesktop/stereo/system-bootup.oga
+
+[Service]
+Type=oneshot
+ExecStart=-@bindir@/canberra-boot system-bootup
+
+[Install]
+WantedBy=sound.target
+Also=canberra-system-shutdown.service canberra-system-shutdown-reboot.service