goto error;
}
+ /* run the startup calls */
+ run_startup_calls();
+
/* run the command */
if (execute_command() < 0)
goto error;
/* ready */
sd_notify(1, "READY=1");
-
- /* run the startup calls */
- run_startup_calls();
return;
error:
exit(1);
// ------------- Build session handler & init config -------
config = afb_config_parse_arguments(argc, argv);
- INFO("running with pid %d", getpid());
// --------- run -----------
if (config->background) {
// ---- in foreground mode --------------------
INFO("entering foreground mode");
}
+ INFO("running with pid %d", getpid());
/* set the daemon environment */
setup_daemon();