core: rework crash handling

System Internals / systemd - Lennart Poettering [poettering.net] - 29 September 2015 14:55 UTC

This introduces a new systemd.crash_reboot=1 kernel command line option that triggers a reboot after crashing.

This also cleans up crash VT handling. Specifically, it cleans up the configuration setting, to be between 1..63 or a boolean. This is to replace the previous logic where "-1" meant disabled. We continue to accept that setting, but only document the boolean syntax instead.

This also brings the documentation of the default settings in sync with what actually happens.

The CrashChVT= configuration file setting is renamed to CrashChangeVT=, following our usual logic of not abbreviating unnecessarily. The old setting stays support for compat reasons.

Fixes #1300

b9e74c3 core: rework crash handling
man/kernel-command-line.xml | 3 +-
man/systemd-system.conf.xml | 3 +-
man/systemd.xml | 104 +++++++++++++++++++--------
src/basic/terminal-util.c | 2 +-
src/core/main.c | 166 ++++++++++++++++++++++++++++++++++---------
src/core/shutdown.c | 1 -
src/core/system.conf | 5 +-
7 files changed, 217 insertions(+), 67 deletions(-)

Upstream: github.com


  • Share