Commit d79cdeed authored by Nils Goroll's avatar Nils Goroll

create secret file before daemonizing so we have a chance to see an error

parent 266c5f6d
......@@ -657,6 +657,10 @@ main(int argc, char * const *argv)
AZ(VSB_finish(vident));
if (S_arg == NULL)
S_arg = make_secret(dirname);
AN(S_arg);
if (!d_flag && !F_flag)
AZ(varnish_daemon(1, 0));
......@@ -675,10 +679,6 @@ main(int argc, char * const *argv)
if (d_flag)
mgt_cli_setup(0, 1, 1, "debug", cli_stdin_close, NULL);
if (S_arg == NULL)
S_arg = make_secret(dirname);
AN(S_arg);
if (*S_arg != '\0')
mgt_cli_secret(S_arg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment