Re: supervise question

2001-07-15 Thread David Dahl

I think i know what is wrong...

here is the output of svstat /service/*:
(i ran this as an unpriveleged user)
=

svstat /service/*
/service/log: unable to open supervise/ok: access denied
/service/qmail-pop3d: unable to open supervise/ok: access denied
/service/qmail-send: unable to open supervise/ok: access denied
/service/qmail-smtpd: unable to open supervise/ok: access denied
/service/run: unable to chdir: not a directory
/service/supervise: unable to chdir: access denied


I have some files in /service that are not soposed to be there...


This was my first try setting up qmail...  my second try was much 
better (on another linux mandrake machine), it has none of these 
problems.

my next step is vmailmgr and oMailadmin...  any pitfalls to be aware 
of?  I have already read the howto and some of the docs...


Thanks!

David Dahl



>On Sun, Jul 15, 2001 at 04:47:00PM -0500, David Dahl wrote:
>>  This is in /var/log/messages and syslog
>>  [...]
>>  i'm not sure what all of this means...
>
>That looks like a report from Mandrake's security manager (I assume that's
>what you're running on that box).
>
>Check the output of:
>
>   svstat /service/*
>
>If you see one or more services up for 0 seconds, that's the service you
>want to check out -- it's failing to start properly.
>
>--
>Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
>Archived @:  
>Useful URLs:  
>   


-- 



Re: supervise question

2001-07-15 Thread Adrian Ho

On Sun, Jul 15, 2001 at 04:47:00PM -0500, David Dahl wrote:
> This is in /var/log/messages and syslog
> [...]
> i'm not sure what all of this means...

That looks like a report from Mandrake's security manager (I assume that's
what you're running on that box).

Check the output of:

svstat /service/*

If you see one or more services up for 0 seconds, that's the service you
want to check out -- it's failing to start properly.

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
Archived @:  
Useful URLs:  
  



Re: supervise question

2001-07-15 Thread Lukas Beeler

At 16:47 15.07.2001 -0500, David Dahl wrote:

>This is in /var/log/messages and syslog
>
>Jul 13 04:01:19 mckenna : Security Warning: There is modifications for 
>port listening on your machine :
>Jul 13 04:01:19 mckenna : -  Opened ports : tcp0  0 
>*:ndmp  *:* LISTEN  26231/perl
>Jul 13 04:01:19 mckenna : -  Opened ports : tcp0  0 
>*:smtp  *:* LISTEN 28443/tcpserver
>Jul 13 04:01:19 mckenna : -  Opened ports : udp0  0 
>*:ndmp  *:* 26231/perl
>Jul 13 04:01:19 mckenna : - Closed ports  : tcp0  0 
>*:smtp  *:* LISTEN 5711/tcpserver
>
>
>i'm not sure what all of this means...
hmm, iam not really sure what produces this output, probably a firewall 
programm are something like that.
What kind of OS are you running ? Which firewall software are you using ?
does qmail itself work ?
what's the output of supervise running in foreground ?
-- 
Lukas "Maverick" Beeler / Telematiker
Project: D.R.E.A.M / every.de - Your Community
Web: http://www.projectdream.org
Mail: [EMAIL PROTECTED]




Re: supervise question

2001-07-15 Thread David Dahl


This is in /var/log/messages and syslog

Jul 13 04:01:19 mckenna : Security Warning: There is modifications 
for port listening on your machine :
Jul 13 04:01:19 mckenna : -  Opened ports : tcp0  0 
*:ndmp  *:* LISTEN  26231/perl
Jul 13 04:01:19 mckenna : -  Opened ports : tcp0  0 
*:smtp  *:* LISTEN 
28443/tcpserver
Jul 13 04:01:19 mckenna : -  Opened ports : udp0  0 
*:ndmp  *:* 26231/perl
Jul 13 04:01:19 mckenna : - Closed ports  : tcp0  0 
*:smtp  *:* LISTEN 
5711/tcpserver


i'm not sure what all of this means...



>yes, it is
>check your logs, probably a process controlled by supervise isn't 
>running properly..  Iv'e got the problem, that supervise write's 
>it's error messages only to tty1. try to run svscan from commandline 
>without backgrounding it, and check the output
>
>At 14:35 15.07.2001 -0500, David Dahl wrote:
>
>>--
>>when i look at my processes i get two lines like this:
>>#ps -aux
>>
>>root 12102  0.0  0.0 00 ?Z02:14   0:00 
>>[supervise ]
>>
>>Has anyone seen this before, and is it a problem?

-- 



Re: supervise question

2001-07-15 Thread Lukas Beeler

yes, it is
check your logs, probably a process controlled by supervise isn't running 
properly..  Iv'e got the problem, that supervise write's it's error 
messages only to tty1. try to run svscan from commandline without 
backgrounding it, and check the output

At 14:35 15.07.2001 -0500, David Dahl wrote:

>--
>when i look at my processes i get two lines like this:
>#ps -aux
>
>root 12102  0.0  0.0 00 ?Z02:14   0:00 [supervise 
>]
>
>Has anyone seen this before, and is it a problem?
>
>Regards,
>
>David Dahl

-- 
Lukas "Maverick" Beeler / Telematiker
Project: D.R.E.A.M / every.de - Your Community
Web: http://www.projectdream.org
Mail: [EMAIL PROTECTED]




supervise question

2001-07-15 Thread David Dahl


-- 
when i look at my processes i get two lines like this:
#ps -aux

root 12102  0.0  0.0 00 ?Z02:14   0:00 
[supervise ]

Has anyone seen this before, and is it a problem?

Regards,

David Dahl



Re: supervise question

2000-04-18 Thread Chris Johnson

On Tue, Apr 18, 2000 at 01:25:51AM -0400, lluisma wrote:
> Hi all,
> 
> I have this entry for qmail-pop3d which is under supervise:
> #!/bin/sh
> 
> exec env - PATH="/var/qmail/bin:$PATH" \
> tcpserver 0 110 /var/qmail/bin/qmail-popup host.name.gov \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
^

Take the & out.

> It is working but when I check with svstat the pid always changes every
> second or less.

Chris



supervise question

2000-04-17 Thread lluisma

Hi all,

I have this entry for qmail-pop3d which is under supervise:
#!/bin/sh

exec env - PATH="/var/qmail/bin:$PATH" \
tcpserver 0 110 /var/qmail/bin/qmail-popup host.name.gov \
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &

It is working but when I check with svstat the pid always changes every
second or less.

Thanks for any help.



LLU






supervise question

1999-05-07 Thread Jeff Carneal


Sorry if this has been discussed before.  Only thing I could find related
was a short thread on running sshd with supervise.

I'm trying to supervise a daemon that forks and detaches itself from the
TTY, but supervise appears to be trying to restart it every second.  The
daemon I want to supervise has no switch to tell it not to detach from the
TTY, so is there anything I can do to use supervise with this daemon?

Also, what is the major factor in this scenario...is the problem that the
parent immediately forks, or that it detaches from the TTY.  It would seem
that supervise could simply watch the parent and restart it...so I'm
inclined to think the fork (without exit) isn't the real problem.  Am I
wrong?

--
  Jeff Carneal - Sys Admin - Apex Internet  
  [EMAIL PROTECTED] http://www.apex.net (502) 442-5363

  The opinions expressed above aren't really mine.
  They belong to someone else who also refuses to 
  take responsibility for them.