Skip to content
Snippets Groups Projects
Commit 030cf243 authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Knotc autocompiles on start/reload.

refs #1560
parent 95b2be84
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,10 @@ int execute(const char *action, char **argv, int argc, pid_t pid, int verbose,
}
}
// Recompile zones if needed
rc = execute("compile", argv, argc, -1, verbose, force, wait,
interactive, jobs, pidfile);
// Lock configuration
conf_read_lock();
......@@ -413,6 +417,10 @@ int execute(const char *action, char **argv, int argc, pid_t pid, int verbose,
}
}
// Recompile zones if needed
rc = execute("compile", argv, argc, -1, verbose, force, wait,
interactive, jobs, pidfile);
// Stop
if (kill(pid, SIGHUP) < 0) {
pid_remove(pidfile);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment