Re: the daemon that won't die

2008-03-02 Thread Colin Brace
On Sun, Mar 2, 2008 at 7:05 PM, Christian Walther <[EMAIL PROTECTED]> wrote:

>  If you get an error from *cron* it means that greyscanner is executed
>  from cron itself.

Christian,

no, I am not running greyscanner via cron.

However, there is this entry:

# Save some entropy so that /dev/random can re-seed on boot.
*/11   *   *   *   *   operator /usr/libexec/save-entropy

which I have temporarily commented out. The thing is, in terminal, I see this:

$ ps uax | grep greyscanner
operator 84730  0.0  1.1  7928  5468  ??  I 6:44PM   0:00.10
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 84999  0.0  1.1  7928  5468  ??  I 6:55PM   0:00.10
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 85162  0.0  1.1  7928  5468  ??  I 7:00PM   0:00.09
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 85436  0.0  1.1  7928  5468  ??  I 7:11PM   0:00.09
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 85736  0.0  1.1  7928  5468  ??  I 7:22PM   0:00.09
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 86024  0.0  1.1  7928  5468  ??  I 7:33PM   0:00.08
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 86327  0.0  1.1  7928  5468  ??  I 7:44PM   0:00.08
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 86610  0.0  1.1  7928  5468  ??  I 7:55PM   0:00.07
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 86772  0.0  1.1  7928  5468  ??  I 8:00PM   0:00.07
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 87066  0.0  1.1  7928  5468  ??  I 8:11PM   0:00.07
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 87377  0.0  1.1  7928  5468  ??  I 8:22PM   0:00.06
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 87666  0.0  1.1  7928  5468  ??  I 8:33PM   0:00.06
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 88051  0.0  1.1  7928  5468  ??  I 8:44PM   0:00.06
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 88358  0.0  1.1  7928  5468  ??  I 8:55PM   0:00.05
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 88521  0.0  1.1  7928  5468  ??  I 9:00PM   0:00.05
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 88833  0.0  1.1  7928  5468  ??  I 9:11PM   0:00.05
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 89175  0.0  1.1  7928  5468  ??  I 9:22PM   0:00.04
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 89479  0.0  1.1  7928  5468  ??  I 9:33PM   0:00.04
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 89807  0.0  1.1  7928  5468  ??  I 9:44PM   0:00.03
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 90127  0.0  1.1  7928  5468  ??  I 9:55PM   0:00.03
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 90291  0.0  1.1  7928  5468  ??  I10:00PM   0:00.03
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 90604  0.0  1.1  7928  5468  ??  I10:11PM   0:00.02
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 90946  0.0  1.1  7928  5468  ??  I10:22PM   0:00.02
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 91265  0.0  1.1  7928  5468  ??  I10:33PM   0:00.02
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)
operator 91619  0.0  1.1  7928  5468  ??  I10:44PM   0:00.01
/usr/bin/perl /usr/local/bin/greyscanner (perl5.8.8)

I can't figure out what the heck is going on;  what the connection is
between the greyscanner script and the cron errors. Note that the
above is happening every eleven minutes, just like the "save-entropy"
cron entry.

Thanks.

-- 
  Colin Brace
  Amsterdam
  http://lim.nl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: the daemon that won't die

2008-03-02 Thread Christian Walther
Hi Colin,

On 02/03/2008, Colin Brace <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  I made the mistake of trying to run greyscanner
>   as a
>  regular user. Now, everytime it runs (every 30 minutes), there is a
>  cron error from user "operator" complaining that "you need to be root"
>  to run /usr/libexec/save-entropy. Moreover, each time this happens, an
>  instance of greyscanner, belonging to user operator, remains dormant
>  in memory, which means an additional instance of perl. After a day or
>  so most of my swap memory is used. up.
>
>  I have tried killing every PID associated with user operator and/or
>  greyscanner, but like Lazarus the thing keeps rising from the dead
>  every 30 mins. I can't figure out what process is keeping it alive.

If you get an error from *cron* it means that greyscanner is executed
from cron itself. As root, you might want to an

# crontab -l u operator

to find out if this is true. The format of the crontab-file is explained in

# man -S 5 crontab

See

# man -S 1 crontab

for how to edit or remove a crontab file.


HTH
Christian
[...]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"