summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-09 15:38:46 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-09 15:38:46 +0200
commit2f198e2f36a4acc05171cc2169bc58887c42d350 (patch)
tree83e89bb3cbc7d6de7b6fc30399276fcbe7823494 /src
parent9fae33d2c8fe968e99d882728c4d072419798716 (diff)
main: rename systemd.default= to systemd.unit=
Diffstat (limited to 'src')
-rw-r--r--src/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.c b/src/main.c
index 7c93f6d9c7..5360455912 100644
--- a/src/main.c
+++ b/src/main.c
@@ -233,8 +233,8 @@ static int parse_proc_cmdline_word(const char *word) {
"5", SPECIAL_RUNLEVEL5_TARGET
};
- if (startswith(word, "systemd.default="))
- return set_default_unit(word + 16);
+ if (startswith(word, "systemd.unit="))
+ return set_default_unit(word + 13);
else if (startswith(word, "systemd.log_target=")) {
@@ -343,7 +343,7 @@ static int parse_argv(int argc, char *argv[]) {
enum {
ARG_LOG_LEVEL = 0x100,
ARG_LOG_TARGET,
- ARG_DEFAULT,
+ ARG_UNIT,
ARG_RUNNING_AS,
ARG_TEST,
ARG_DUMP_CONFIGURATION_ITEMS,
@@ -355,7 +355,7 @@ static int parse_argv(int argc, char *argv[]) {
static const struct option options[] = {
{ "log-level", required_argument, NULL, ARG_LOG_LEVEL },
{ "log-target", required_argument, NULL, ARG_LOG_TARGET },
- { "default", required_argument, NULL, ARG_DEFAULT },
+ { "unit", required_argument, NULL, ARG_UNIT },
{ "running-as", required_argument, NULL, ARG_RUNNING_AS },
{ "test", no_argument, NULL, ARG_TEST },
{ "help", no_argument, NULL, 'h' },
@@ -392,7 +392,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
- case ARG_DEFAULT:
+ case ARG_UNIT:
if ((r = set_default_unit(optarg)) < 0) {
log_error("Failed to set default unit %s: %s", optarg, strerror(-r));