Skip to Content.
Sympa Menu

en - RE: [sympa-users]processes dieing for unknown reason...

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Eric Sandquist" <address@concealed>
  • To: "Olivier Salaun - CRU" <address@concealed>
  • Cc: <address@concealed>
  • Subject: RE: [sympa-users]processes dieing for unknown reason...
  • Date: Thu, 6 Mar 2003 17:30:22 -0600

Well, neither of these solutions worked...

I am using the following script, a modification of the script for the IRC
bot "AcidBlood", in a cron job as root, placed in the sympa/bin folder to
check to see if the processes have died, and if so, restart:

#!/usr/bin/perl
#
# Sympa upbot perl script that
# reloads the bot when the server dies
#
# sample crontab entry
# 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /the/bots/directory/executable

# Put your directory here
chdir("/www/sympa/");


$pid=`cat sympa.pid`;
$data=`/bin/ps -axw | grep -v grep | grep $pid`;
$data2=`/bin/ps -axw | grep -v grep | grep sympa`;

if ($data && $data2) {}
else {
open(FP,"upbot.count");
$number=<FP>;
close (FP);
open(FP,">upbot.count");
$number++;
print FP $number;
close (FP);
exec("/etc/init.d/sympa restart");
}



Although, honestly, I'd rather it stop dieing.... :/

How is the next major release going?

Eric




-----Original Message-----
From: Olivier Salaun - CRU [mailto:address@concealed]
Sent: Tuesday, February 11, 2003 7:59 AM
To: Eric Sandquist
Cc: address@concealed
Subject: Re: [sympa-users]processes dieing for unknown reason...


You might fix your problem with :
* either change 'log_socket_type' sympa.conf parameter
* or apply attached patch against Log.pm. It will prevent Sympa from
trying
to
reconnect to syslogd if connection was lost.

Please keep us informed which solution worked for you...

Eric Sandquist wrote:
> Well... Syslogd has been running the whole time.. All other loggins seems
to
> be working just fine... Last weeks re-attempt at this yielded this error:
>
> connect: No such file or directory (SOCK_DGRAM after trying SOCK_STREEM)
at
> /www/sympa/bin/Log.pm line 96
>
> Is it possible, then, that syslogd is unavailable due to another process
> writing to it? If so, is there another way for me to redirect of handle
the
> logging?
>
> Sever load has been very low over all - .86-1.40... So this does not seem
> to make sense...

--
Olivier Salaun
Comite Reseau des Universites



  • RE: [sympa-users]processes dieing for unknown reason..., Eric Sandquist, 03/06/2003

Archive powered by MHonArc 2.6.19+.

Top of Page