--- loncom/loncron 2005/05/26 20:25:00 1.59 +++ loncom/loncron 2005/06/13 19:54:28 1.60 @@ -2,7 +2,7 @@ # Housekeeping program, started by cron, loncontrol and loncron.pl # -# $Id: loncron,v 1.59 2005/05/26 20:25:00 albertel Exp $ +# $Id: loncron,v 1.60 2005/06/13 19:54:28 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -92,13 +92,12 @@ sub start_daemon { rename("$error_fname","$error_fname.1"); } system("$perlvar{'lonDaemons'}/$progname 2>$perlvar{'lonDaemons'}/logs/${daemon}_errors"); - sleep 2; + sleep 1; if (-e $pidfile) { &log($fh,"
Seems like it started ...
"); my $lfh=IO::File->new("$pidfile"); my $daemonpid=<$lfh>; chomp($daemonpid); - sleep 2; if (kill 0 => $daemonpid) { return 1; } else { @@ -161,7 +160,7 @@ sub checkon_daemon { if ($kadaemon eq 'lonmemcached') { $kadaemon='memcached'; } &log($fh,'