summaryrefslogtreecommitdiffstats
path: root/src/canberra-system-shutdown-reboot.service.in
blob: 0e467650a01266887b485a819081fe97be815e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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