From f07756bfe25c64119704c93a634162d6c88b5c89 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Aug 2014 16:59:46 +0200 Subject: core: introduce "poweroff" as new failure action types Also, change the default action on a system start-up timeout to powering off. --- src/core/shutdown.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/core/shutdown.c') diff --git a/src/core/shutdown.c b/src/core/shutdown.c index 1abc140e7d..0e2ea5754f 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -435,8 +435,7 @@ int main(int argc, char *argv[]) { if (read_one_line_file(REBOOT_PARAM_FILE, ¶m) >= 0) { log_info("Rebooting with argument '%s'.", param); - syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, - LINUX_REBOOT_CMD_RESTART2, param); + syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART2, param); } } -- cgit v1.2.3-54-g00ecf