Skip to content

Commit

Permalink
Moved daemonize as otherwise ZMQ interfaces won't poll data
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Feb 3, 2022
1 parent 9389170 commit ea45726
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,9 @@ int main(int argc, char *argv[])
}
#endif

if(prefs->daemonize_ntopng())
ntop->daemonize();

#ifndef HAVE_NEDGE
/* Force ZMQ interface creation */
ntop->broadcastIPSMessage(NULL);
Expand Down Expand Up @@ -315,9 +318,6 @@ int main(int argc, char *argv[])
ntop->initPing();
#endif

if(prefs->daemonize_ntopng())
ntop->daemonize();

#ifndef WIN32
if(prefs->get_pid_path() != NULL) {
FILE *fd;
Expand Down

0 comments on commit ea45726

Please sign in to comment.