diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-03-22 20:57:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-03-27 12:37:37 +0100 |
commit | 50cbaba4fe5a32850998682699322d012e597e4a (patch) | |
tree | e5c26a2e173f20ce57e67168c55859a0b90abbb2 /src/core/emergency-action.c | |
parent | 49bd196d693efe0acfc8d56c4e3d8f7ba9f91b5d (diff) | |
download | systemd-50cbaba4fe5a32850998682699322d012e597e4a.tar.gz |
core: add new API for enqueing a job with returning the transaction data
Diffstat (limited to 'src/core/emergency-action.c')
-rw-r--r-- | src/core/emergency-action.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/emergency-action.c b/src/core/emergency-action.c index 09f8d74092..4330c0f2c1 100644 --- a/src/core/emergency-action.c +++ b/src/core/emergency-action.c @@ -48,8 +48,7 @@ void emergency_action( log_and_status(m, warn, "Rebooting", reason); (void) update_reboot_parameter_and_warn(reboot_arg, true); - (void) manager_add_job_by_name_and_warn(m, JOB_START, SPECIAL_REBOOT_TARGET, JOB_REPLACE_IRREVERSIBLY, NULL); - + (void) manager_add_job_by_name_and_warn(m, JOB_START, SPECIAL_REBOOT_TARGET, JOB_REPLACE_IRREVERSIBLY, NULL, NULL); break; case EMERGENCY_ACTION_REBOOT_FORCE: @@ -82,7 +81,7 @@ void emergency_action( if (MANAGER_IS_USER(m) || detect_container() > 0) { log_and_status(m, warn, "Exiting", reason); - (void) manager_add_job_by_name_and_warn(m, JOB_START, SPECIAL_EXIT_TARGET, JOB_REPLACE_IRREVERSIBLY, NULL); + (void) manager_add_job_by_name_and_warn(m, JOB_START, SPECIAL_EXIT_TARGET, JOB_REPLACE_IRREVERSIBLY, NULL, NULL); break; } @@ -91,7 +90,7 @@ void emergency_action( case EMERGENCY_ACTION_POWEROFF: log_and_status(m, warn, "Powering off", reason); - (void) manager_add_job_by_name_and_warn(m, JOB_START, SPECIAL_POWEROFF_TARGET, JOB_REPLACE_IRREVERSIBLY, NULL); + (void) manager_add_job_by_name_and_warn(m, JOB_START, SPECIAL_POWEROFF_TARGET, JOB_REPLACE_IRREVERSIBLY, NULL, NULL); break; case EMERGENCY_ACTION_EXIT_FORCE: |