summaryrefslogtreecommitdiffstats
path: root/src/canberra-system-bootup.service.in
diff options
context:
space:
mode:
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