static gboolean
infinoted_main(int argc,
               char* argv[],
               GError** error)
{
  InfinotedStartup* startup;
  gboolean result;

  startup = infinoted_startup_new(&argc, &argv, error);

  if(startup == NULL)
    return FALSE;

#ifdef LIBINFINITY_HAVE_LIBDAEMON
  if(startup->options->daemonize)
  {
    daemon_pid_file_ident = daemon_ident_from_argv0(argv[0]);
    daemon_log_ident = daemon_pid_file_ident;
  }
#endif

  result = infinoted_main_run(startup, error);

  return result;
}
Exemple #2
0
static gboolean
infinoted_main(int argc,
               char* argv[],
               GError** error)
{
    InfinotedStartup* startup;
    gboolean result;

    startup = infinoted_startup_new(&argc, &argv, error);

    if(startup == NULL)
        return FALSE;

    result = infinoted_main_run(startup, error);
    infinoted_startup_free(startup);

    return result;
}