1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-26 08:55:40 +03:00

units: Use built-in halt and kexec features instead of systemctl

This commit is contained in:
Daan De Meyer 2023-06-22 10:33:18 +01:00
parent 3cf848f6cd
commit 9a0eade760
2 changed files with 2 additions and 8 deletions

View File

@ -13,7 +13,4 @@ Documentation=man:systemd-halt.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target
[Service]
Type=oneshot
ExecStart=systemctl --force halt
SuccessAction=halt-force

View File

@ -13,7 +13,4 @@ Documentation=man:systemd-kexec.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target
[Service]
Type=oneshot
ExecStart=systemctl --force kexec
SuccessAction=kexec-force