diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-12 23:49:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-12 23:49:20 +0200 |
commit | f057408c9c3b54b6eeb96cd9f0a1333f30610614 (patch) | |
tree | 3e3b4ba0a2718333350891c967b8096160514893 /src | |
parent | 2edd4434e5bc6e5c7948df742d82f4bcd6c415f3 (diff) |
units: introduce emergency.target
Diffstat (limited to 'src')
-rw-r--r-- | src/manager.c | 2 | ||||
-rw-r--r-- | src/special.h | 2 | ||||
-rw-r--r-- | src/systemctl.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/manager.c b/src/manager.c index 6dfef713ed..9667e299f3 100644 --- a/src/manager.c +++ b/src/manager.c @@ -1947,7 +1947,7 @@ static int manager_process_signal_fd(Manager *m) { static const char * const table[] = { [0] = SPECIAL_DEFAULT_TARGET, [1] = SPECIAL_RESCUE_TARGET, - [2] = SPECIAL_EMERGENCY_SERVICE, + [2] = SPECIAL_EMERGENCY_TARGET, [3] = SPECIAL_HALT_TARGET, [4] = SPECIAL_POWEROFF_TARGET, [5] = SPECIAL_REBOOT_TARGET diff --git a/src/special.h b/src/special.h index 5ecdd3ccfa..9ffd3d8922 100644 --- a/src/special.h +++ b/src/special.h @@ -53,7 +53,7 @@ #define SPECIAL_SYSINIT_TARGET "sysinit.target" #define SPECIAL_RESCUE_TARGET "rescue.target" #define SPECIAL_EXIT_SERVICE "exit.service" -#define SPECIAL_EMERGENCY_SERVICE "emergency.service" +#define SPECIAL_EMERGENCY_TARGET "emergency.target" #define SPECIAL_HALT_TARGET "halt.target" #define SPECIAL_POWEROFF_TARGET "poweroff.target" #define SPECIAL_REBOOT_TARGET "reboot.target" diff --git a/src/systemctl.c b/src/systemctl.c index 32974aecce..4218a22b97 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -720,7 +720,7 @@ static int start_unit(DBusConnection *bus, char **args, unsigned n) { [ACTION_RUNLEVEL4] = SPECIAL_RUNLEVEL4_TARGET, [ACTION_RUNLEVEL5] = SPECIAL_RUNLEVEL5_TARGET, [ACTION_RESCUE] = SPECIAL_RESCUE_TARGET, - [ACTION_EMERGENCY] = SPECIAL_EMERGENCY_SERVICE, + [ACTION_EMERGENCY] = SPECIAL_EMERGENCY_TARGET, [ACTION_DEFAULT] = SPECIAL_DEFAULT_TARGET }; |