Oron Peled wrote:
Why not have it restart itself?
execve(argv[0], argv, yada, yada)
if( restart ) {
execv( argv[0], argv )
syslog( LOG_CRIT, "Configuration reload failed: %m" )
}
at the end of main.
from some signal handler?
Oooh, no. The entire idea is to allow an orderly shutdown.
Than the "controlling" daemon would send it
(e.g: sighup) when it want this to happen and the agent would restart itself.
Yes. This is what I'll do. Thanks!
Shachar
_______________________________________________
Linux-il mailing list
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il