|
@ -665,11 +665,11 @@ int main(int argc, char *argv[]) |
|
|
if (!ld->daemon_dir) |
|
|
if (!ld->daemon_dir) |
|
|
errx(1, "Could not find daemons"); |
|
|
errx(1, "Could not find daemons"); |
|
|
|
|
|
|
|
|
/*~ Handle early options, but don't move to --lightning-dir
|
|
|
/*~ Handle early options; this moves us into --lightning-dir.
|
|
|
* just yet. Plugins may add new options, which is why we are |
|
|
* Plugins may add new options, which is why we are splitting |
|
|
* splitting between early args (including --plugin |
|
|
* between early args (including --plugin registration) and |
|
|
* registration) and non-early opts. This also forks if they |
|
|
* non-early opts. This also forks if they say |
|
|
* say --daemonize. */ |
|
|
* --daemonize. */ |
|
|
handle_early_opts(ld, argc, argv); |
|
|
handle_early_opts(ld, argc, argv); |
|
|
|
|
|
|
|
|
/*~ Initialize all the plugins we just registered, so they can
|
|
|
/*~ Initialize all the plugins we just registered, so they can
|
|
@ -677,7 +677,7 @@ int main(int argc, char *argv[]) |
|
|
* options registration). */ |
|
|
* options registration). */ |
|
|
plugins_init(ld->plugins, ld->dev_debug_subprocess); |
|
|
plugins_init(ld->plugins, ld->dev_debug_subprocess); |
|
|
|
|
|
|
|
|
/*~ Handle options and config; move to .lightningd (--lightning-dir) */ |
|
|
/*~ Handle options and config. */ |
|
|
handle_opts(ld, argc, argv); |
|
|
handle_opts(ld, argc, argv); |
|
|
|
|
|
|
|
|
/*~ Now create the PID file: this errors out if there's already a
|
|
|
/*~ Now create the PID file: this errors out if there's already a
|
|
|