summaryrefslogtreecommitdiff
path: root/nhrp/opennhrp.c
diff options
context:
space:
mode:
Diffstat (limited to 'nhrp/opennhrp.c')
-rw-r--r--nhrp/opennhrp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nhrp/opennhrp.c b/nhrp/opennhrp.c
index 4ed27a8..ba8fb36 100644
--- a/nhrp/opennhrp.c
+++ b/nhrp/opennhrp.c
@@ -473,8 +473,6 @@ int main(int argc, char **argv)
}
srandom(time(NULL));
- if (!log_init())
- return 1;
if (!open_pid_file())
return 1;
@@ -499,6 +497,9 @@ int main(int argc, char **argv)
return 8;
}
+ if (!log_init())
+ return 1;
+
write_pid();
nhrp_running = TRUE;