mirror of
https://github.com/systemd/systemd.git
synced 2024-11-04 22:21:55 +03:00
3898b80d40
Using the new JobTimeoutAction= setting make sure we power off the machine after basic.target is queued for longer than 15min but not executed. Similar, if poweroff.target is queued for longer than 30min but does not complete, forcibly turn off the system. Similar, if reboot.target is queued for longer than 30min but does not complete, forcibly reboot the system.
20 lines
543 B
SYSTEMD
20 lines
543 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Reboot
|
|
Documentation=man:systemd.special(7)
|
|
DefaultDependencies=no
|
|
Requires=systemd-reboot.service
|
|
After=systemd-reboot.service
|
|
AllowIsolate=yes
|
|
JobTimeoutSec=30min
|
|
JobTimeoutAction=reboot-force
|
|
|
|
[Install]
|
|
Alias=ctrl-alt-del.target
|