chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: add verbs for special units
[elogind.git]
/
src
/
target.c
diff --git
a/src/target.c
b/src/target.c
index 75f8ef8948db484817a53e6a30f1ad71e9645bcb..d3f3748cd54f86057b73d6e07f2bbe13784cb63f 100644
(file)
--- a/
src/target.c
+++ b/
src/target.c
@@
-27,6
+27,7
@@
#include "load-fragment.h"
#include "log.h"
#include "dbus-target.h"
#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,
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_RUNLEVEL4_TARGET, '4' },
{ SPECIAL_RUNLEVEL3_TARGET, '3' },
{ SPECIAL_RUNLEVEL2_TARGET, '2' },
- { SPECIAL_R
UNLEVEL1_TARGET,
'1' },
- { SPECIAL_
RUNLEVEL0_TARGET,
'0' },
- { SPECIAL_R
UNLEVEL6_TARGET,
'6' },
+ { SPECIAL_R
ESCUE_TARGET,
'1' },
+ { SPECIAL_
POWEROFF_TARGET,
'0' },
+ { SPECIAL_R
EBOOT_TARGET,
'6' },
};
unsigned i;
};
unsigned i;