mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +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.
16 lines
576 B
SYSTEMD
16 lines
576 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=Basic System
|
|
Documentation=man:systemd.special(7)
|
|
Requires=sysinit.target
|
|
Wants=sockets.target timers.target paths.target slices.target
|
|
After=sysinit.target sockets.target timers.target paths.target slices.target
|
|
JobTimeoutSec=15min
|
|
JobTimeoutAction=poweroff-force
|