summaryrefslogtreecommitdiff
path: root/src/target.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-18 04:22:59 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-18 04:22:59 +0200
commit514f4ef52f91edb3741cad88d34572d162459346 (patch)
treef6314e0a9b21d18de3f3159dad6c2622c4ee98cb /src/target.c
parentef2f1067d0ca0e6d7346aa3e082048821b670b54 (diff)
systemctl: add verbs for special units
Diffstat (limited to 'src/target.c')
-rw-r--r--src/target.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/target.c b/src/target.c
index 75f8ef8948..d3f3748cd5 100644
--- a/src/target.c
+++ b/src/target.c
@@ -27,6 +27,7 @@
#include "load-fragment.h"
#include "log.h"
#include "dbus-target.h"
+#include "special.h"
static const UnitActiveState state_translation_table[_TARGET_STATE_MAX] = {
[TARGET_DEAD] = UNIT_INACTIVE,
@@ -147,9 +148,9 @@ int target_get_runlevel(Target *t) {
{ SPECIAL_RUNLEVEL4_TARGET, '4' },
{ SPECIAL_RUNLEVEL3_TARGET, '3' },
{ SPECIAL_RUNLEVEL2_TARGET, '2' },
- { SPECIAL_RUNLEVEL1_TARGET, '1' },
- { SPECIAL_RUNLEVEL0_TARGET, '0' },
- { SPECIAL_RUNLEVEL6_TARGET, '6' },
+ { SPECIAL_RESCUE_TARGET, '1' },
+ { SPECIAL_POWEROFF_TARGET, '0' },
+ { SPECIAL_REBOOT_TARGET, '6' },
};
unsigned i;