along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: tincd.c,v 1.10.4.16 2000/10/28 21:05:20 guus Exp $
+ $Id: tincd.c,v 1.10.4.19 2000/10/29 09:19:27 guus Exp $
*/
#include "config.h"
#include <signal.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
+#include <string.h>
#ifdef HAVE_SYS_IOCTL_H
# include <sys/ioctl.h>
#include <xalloc.h>
#include "conf.h"
-#include "encr.h"
#include "net.h"
#include "netutl.h"
#include "protocol.h"
{
int r;
int option_index = 0;
- config_t *p;
-
+
while((r = getopt_long(argc, argv, "c:Ddkn:K::", long_options, &option_index)) != EOF)
{
switch(r)
if(pid) /* parent process */
{
signal(SIGTERM, parent_exit);
-// sleep(600); /* wait 10 minutes */
+ sleep(600); /* wait 10 minutes */
exit(1);
}
}
{
main_loop();
cleanup_and_exit(1);
- }
+ }
syslog(LOG_ERR, _("Unrecoverable error"));
cp_trace();
}
else
{
- syslog(LOG_ERR, _("Aieee! Not restarting."));
+ syslog(LOG_ERR, _("Not restarting."));
exit(0);
}
}
{
if(debug_lvl > DEBUG_NOTHING)
syslog(LOG_NOTICE, _("Got TERM signal"));
+
cleanup_and_exit(0);
}
}
else
{
- syslog(LOG_NOTICE, _("Aieee! Not restarting."));
+ syslog(LOG_NOTICE, _("Not restarting."));
exit(0);
}
}
sighup_handler(int a)
{
if(debug_lvl > DEBUG_NOTHING)
- syslog(LOG_NOTICE, _("Got HUP signal, rereading configuration and restarting"));
+ syslog(LOG_NOTICE, _("Got HUP signal"));
sighup = 1;
}
sigusr2_handler(int a)
{
dump_subnet_list();
-// if(debug_lvl > DEBUG_NOTHING)
-// syslog(LOG_NOTICE, _("Got USR2 signal, forcing new key generation"));
/* FIXME: reprogram this.
+ if(debug_lvl > DEBUG_NOTHING)
+ syslog(LOG_NOTICE, _("Got USR2 signal, forcing new key generation"));
regenerate_keys();
*/
}