diff options
Diffstat (limited to 'src/canberra-system-shutdown-reboot.service.in')
-rw-r--r-- | src/canberra-system-shutdown-reboot.service.in | 17 |
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 |