units: Use built-in halt and kexec features instead of systemctl
This commit is contained in:
parent
3cf848f6cd
commit
9a0eade760
2 changed files with 2 additions and 8 deletions
|
@ -13,7 +13,4 @@ Documentation=man:systemd-halt.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=shutdown.target umount.target final.target
|
Requires=shutdown.target umount.target final.target
|
||||||
After=shutdown.target umount.target final.target
|
After=shutdown.target umount.target final.target
|
||||||
|
SuccessAction=halt-force
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=systemctl --force halt
|
|
||||||
|
|
|
@ -13,7 +13,4 @@ Documentation=man:systemd-kexec.service(8)
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
Requires=shutdown.target umount.target final.target
|
Requires=shutdown.target umount.target final.target
|
||||||
After=shutdown.target umount.target final.target
|
After=shutdown.target umount.target final.target
|
||||||
|
SuccessAction=kexec-force
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=systemctl --force kexec
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue