summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/init.c b/src/init.c
index 5a7eb5da7..35c4c9f67 100644
--- a/src/init.c
+++ b/src/init.c
@@ -307,7 +307,7 @@ static int parse_options(int ac, char **av)
s = av[i];
if (atoi(s) <= 0) {
fprintf(stderr,
- "-expire: number of seconds must be positive");
+ "-expire: number of seconds must be positive\n");
return -1;
} else
ExpireTimeout = atol(s);
@@ -322,7 +322,13 @@ static int parse_options(int ac, char **av)
} else if (strcmp(s, "nofork") == 0) {
nofork = 1;
} else if (strcmp(s, "logchan") == 0) {
- logchan = 1;
+ if (!LogChannel) {
+ fprintf(stderr,
+ "-logchan: LogChannel must be defined in services.conf\n");
+ } else { /* LogChannel */
+
+ logchan = 1;
+ }
} else if (strcmp(s, "forceload") == 0) {
forceload = 1;
} else if (strcmp(s, "nothird") == 0) {