Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
init scripts for qmail - problems with svscan
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Mon Nov 11, 2002 3:50 pm    Post subject: init scripts for qmail - problems with svscan Reply with quote

i emerged qmail, rtfm and got it working quite fine :D ... safe one little problem - i cant seem to start qmail on reboot :?

if i understod that correct, qmail should be started by running svscan. i added svscan to the default runlevel, but on boot i get the following problem:

Code:

root@box# ps aux | grep qmail
root      3814  0.0  0.7  1392  468 pts/0    S    16:29   0:00 grep qmail
root@box# /etc/init.d/svscan start
 * WARNING:  "svscan" has already been started.
root@box# /etc/init.d/qmail start
Starting qmail
qmail-send supervise not running
qmail-smtpd supervise not running
root@box# /etc/init.d/svscan restart
 * Stopping service scan......
start-stop-daemon: warning: failed to kill 3178: No such process                      [ !! ]

 * Stopping services......
svc: warning: unable to control /service/qmail-send: supervise not running
svc: warning: unable to control /service/qmail-smtpd: supervise not running           [ ok ]
 * Stopping service logging......
svc: warning: unable to control /service/qmail-send/log: supervise not running
svc: warning: unable to control /service/qmail-smtpd/log: supervise not running       [ ok ]
 * Starting service scan......                                                        [ ok ]
root@box# ps aux | grep qmail
root      3869  0.0  0.4  1284  304 pts/0    S    16:29   0:00 supervise qmail-send
root      3871  0.0  0.4  1284  304 pts/0    S    16:29   0:00 supervise qmail-smtpd
qmails    3874  0.6  0.6  1336  380 pts/0    S    16:29   0:00 qmail-send
qmaill    3875  0.2  0.4  1296  308 pts/0    S    16:29   0:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-send
qmaild    3876  0.3  1.2  2312  772 pts/0    S    16:29   0:00 /usr/bin/tcpserver -H -R -v -p -x /etc/tcp.smtp.cdb -u 1005 -g 200 0 smtp rblsmtpd /var/qmail/bin/qmail-smtpd
qmaill    3878  0.2  0.4  1296  308 pts/0    S    16:29   0:00 /usr/bin/multilog t s2500000 /var/log/qmail/qmail-smtpd
root      3883  0.0  0.5  1304  324 pts/0    S    16:29   0:00 qmail-lspawn |dot-forward .forward?./.maildir/
qmailr    3884  0.0  0.5  1300  320 pts/0    S    16:29   0:00 qmail-rspawn
qmailq    3885  0.0  0.5  1284  332 pts/0    S    16:29   0:00 qmail-clean


system thinks that svscan is up and running, qmail says, its not and wont run unless i restart it, which gives me some strange warnings

i went over the instructions in 'life with qmail' over and over, but i seem to miss something - an idea anyone?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Nov 11, 2002 6:56 pm    Post subject: Reply with quote

Sounds like svscan is dying at startup time. Anything in the logs? If you run it manually can you get it to error on you?
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Nov 12, 2002 12:38 am    Post subject: Reply with quote

Code:

root@box# /etc/init.d/svscan stop
* Stopping service scan......                                                        [ ok ]
* Stopping services......                                                            [ ok ]
* Stopping service logging......                                                     [ ok ]
root@box# svscan
supervise: fatal: unable to start mail/run: file does not exist
supervise: fatal: unable to start mail/run: file does not exist
supervise: fatal: unable to start mail/run: file does not exist
root@box# /etc/init.d/svscan start
* Starting service scan......                                                         [ ok ]
root@box# qmailctl stat
/service/qmail-send: up (pid 6636) 8 seconds
/service/qmail-send/log: up (pid 6637) 8 seconds
/service/qmail-smtpd: up (pid 6639) 8 seconds
/service/qmail-smtpd/log: up (pid 6638) 8 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0


should have thought of trying that myself ... but anyway - svscan works fine except when started via the standard bootscript and another mysterie here - i thought it tries to start all progs in /services which have a .run script - well there are only two: qmail-send and qmail-smtp where does it get 'mail/run' from ??? weird

the logs *blush* - i dont have the slightest idea where svscan logs to, only thing i found is readproctitle and i have to confess that i dont unterstand what this thing does - i'm not sooo new to linux anymore, but i dont understand how one can get some useful information out of this - other than that, the qmail-send and qmail-smtp logs look completely normal, everything ok there...nothing in var/log, except the 'WARNING: "svscan" has already been started.' messages, but that would only bother me if they would NOT be there ;)
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Nov 12, 2002 9:54 am    Post subject: Reply with quote

DUH!

i guess i need some sleep real fast - svscan tried to exec from the current dir, therefore the errors...so forget the above on this respect...

the correct snippet is:

Code:

root@box# init.d/svscan stop
 * Stopping service scan......                                            [ ok ]
 * Stopping services......                                                [ ok ]
 * Stopping service logging......                                         [ ok ]
root@box# cd /service/
root@box# svscan &
[1] 7404
root@box# qmailctl stat
/service/qmail-send: up (pid 7409) 56 seconds
/service/qmail-send/log: up (pid 7410) 56 seconds
/service/qmail-smtpd: up (pid 7411) 56 seconds
/service/qmail-smtpd/log: up (pid 7412) 56 seconds
messages in queue: 0
messages in queue but not yet preprocessed: 0


no problem here it seems - leads me to suspect that something with the init script is wrong - maybe some path or something like that...we'll see
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Nov 12, 2002 10:05 am    Post subject: Reply with quote

hehe - i think everyone should get a 'i help myself' thread by default - helps to work in a systematic manner - maybe i'll install my private phpbb on my local box - LOL
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Mon Nov 18, 2002 10:45 am    Post subject: Reply with quote

resolved:

svscan init script was in runlevels boot AND default...

:mrgreen:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum