summaryrefslogtreecommitdiffstats
path: root/src/canberra-system-shutdown-reboot.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-shutdown-reboot.service.in
parentdfd5e05f01dd4d28bc6c5ebc3c991404723bc076 (diff)
systemd: add unit for bootup and shutdown sounds
Diffstat (limited to 'src/canberra-system-shutdown-reboot.service.in')
-rw-r--r--src/canberra-system-shutdown-reboot.service.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/canberra-system-shutdown-reboot.service.in b/src/canberra-system-shutdown-reboot.service.in
new file mode 100644
index 0000000..0e46765
--- /dev/null
+++ b/src/canberra-system-shutdown-reboot.service.in
@@ -0,0 +1,17 @@
+[Unit]
+Description=Play Reboot Sound
+DefaultDependencies=no
+Before=shutdown.target
+
+# A little optimization under the assumption that we are using the
+# standard freedesktop theme
+ConditionPathExists=/usr/share/sounds/freedesktop/stereo/system-shutdown.oga
+ConditionPathExists=/usr/share/sounds/freedesktop/stereo/system-shutdown-reboot.oga
+
+[Service]
+Type=oneshot
+ExecStart=-@bindir@/canberra-boot system-shutdown-reboot
+
+[Install]
+WantedBy=reboot.target kexec.target
+Also=canberra-system-shutdown.service