summaryrefslogtreecommitdiff
path: root/src/service.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/service.c
parentef2f1067d0ca0e6d7346aa3e082048821b670b54 (diff)
systemctl: add verbs for special units
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index fe91b9241e..a767c34f58 100644
--- a/src/service.c
+++ b/src/service.c
@@ -32,6 +32,7 @@
#include "strv.h"
#include "unit-name.h"
#include "dbus-service.h"
+#include "special.h"
#define COMMENTS "#;\n"
#define NEWLINES "\n\r"
@@ -49,13 +50,13 @@ static const struct {
const RunlevelType type;
} rcnd_table[] = {
/* Standard SysV runlevels */
- { "rc0.d", SPECIAL_RUNLEVEL0_TARGET, RUNLEVEL_DOWN },
- { "rc1.d", SPECIAL_RUNLEVEL1_TARGET, RUNLEVEL_UP },
+ { "rc0.d", SPECIAL_POWEROFF_TARGET, RUNLEVEL_DOWN },
+ { "rc1.d", SPECIAL_RESCUE_TARGET, RUNLEVEL_UP },
{ "rc2.d", SPECIAL_RUNLEVEL2_TARGET, RUNLEVEL_UP },
{ "rc3.d", SPECIAL_RUNLEVEL3_TARGET, RUNLEVEL_UP },
{ "rc4.d", SPECIAL_RUNLEVEL4_TARGET, RUNLEVEL_UP },
{ "rc5.d", SPECIAL_RUNLEVEL5_TARGET, RUNLEVEL_UP },
- { "rc6.d", SPECIAL_RUNLEVEL6_TARGET, RUNLEVEL_DOWN },
+ { "rc6.d", SPECIAL_REBOOT_TARGET, RUNLEVEL_DOWN },
/* SUSE style boot.d */
{ "boot.d", SPECIAL_SYSINIT_TARGET, RUNLEVEL_SYSINIT },