summaryrefslogtreecommitdiff
path: root/src/canberra-system-shutdown-reboot.service.in
blob: 86531348c17bc8fa736969adb2d5d85132fe203f (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