summaryrefslogtreecommitdiff
path: root/sys-apps/kexec-tools/files/kexec.service-r1
blob: ce9adf0e5da20d8875c4ea65ba6620a9efc7b6e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[Unit]
Description=Gracefully restart the box
Documentation=man:kexec(8)
After=boot.mount
Before=shutdown.target umount.target final.target
ConditionPathExists=!/nokexec

[Service]
Type=oneshot
RemainAfterExit=yes
EnvironmentFile=/etc/kexec.conf
ExecStart=/usr/sbin/kexec-auto-load
ExecStop=/usr/sbin/kexec-auto-load

[Install]
WantedBy=multi-user.target