[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=-/usr/bin/canberra-boot system-shutdown

[Install]
WantedBy=halt.target poweroff.target
Also=canberra-system-shutdown-reboot.service canberra-system-shutdown-reboot.service
