summaryrefslogtreecommitdiffstats
path: root/src/canberra-system-shutdown.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.service.in
parentdfd5e05f01dd4d28bc6c5ebc3c991404723bc076 (diff)
systemd: add unit for bootup and shutdown sounds
Diffstat (limited to 'src/canberra-system-shutdown.service.in')
-rw-r--r--src/canberra-system-shutdown.service.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/canberra-system-shutdown.service.in b/src/canberra-system-shutdown.service.in
new file mode 100644
index 0000000..f5ce0ca
--- /dev/null
+++ b/src/canberra-system-shutdown.service.in
@@ -0,0 +1,16 @@
+[Unit]
+Description=Play Shutdown 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
+
+[Service]
+Type=oneshot
+ExecStart=-@bindir@/canberra-boot system-shutdown
+
+[Install]
+WantedBy=halt.target poweroff.target
+Also=canberra-system-shutdown-reboot.service canberra-system-shutdown-reboot.service