[gentoo-user] [postfix - bug?] error in master.cf - problem with restart

2009-06-22 Thread Marcin Niskiewicz
Hello
I noticed that when someone makes an error in master.cf (for example write
anything at the beginning of the file) and then restart postfix there is a
problem:

postfix is stopped (that's ok), then it should be started but it isn't (in
log something like
postfix/master[1649]: fatal: /etc/postfix/master.cf: line 4: bad transport
type:
==)
and there is no error shown on console ( echo $? - shows 0 )

and then when we try to restart (or start) postfix again - we can't - unless
we delete /var/lib/init.d/started/postfix file (it's not deleted while
restarting)

is it a bug or we're doing sth wrong?!

equery list | grep postfix
mail-mta/postfix-2.5.5

uname -r
2.6.27-gentoo-r8

regards
nichu


Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart

2009-06-22 Thread Eray Aslan
On 22.06.2009 13:02, Marcin Niskiewicz wrote:
> I noticed that when someone makes an error in master.cf
>  (for example write anything at the beginning of the
> file) and then restart postfix there is a problem:
> 
> postfix is stopped (that's ok), then it should be started but it isn't
> (in log something like
> postfix/master[1649]: fatal: /etc/postfix/master.cf :
> line 4: bad transport type:
> ==)
> and there is no error shown on console ( echo $? - shows 0 )
> 
> and then when we try to restart (or start) postfix again - we can't -
> unless we delete /var/lib/init.d/started/postfix file (it's not deleted
> while restarting)
> 
> is it a bug or we're doing sth wrong?!

Postfix init script just calls postfix(1) which calls postfix-script
which calls master(8).  Exit codes do not get back to the terminal.

Use postfix status to check whether the mail system is running.

-- 
Eray



Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart

2009-06-22 Thread Marcin Niskiewicz
2009/6/22 Eray Aslan 

> On 22.06.2009 13:02, Marcin Niskiewicz wrote:
> > I noticed that when someone makes an error in master.cf
> >  (for example write anything at the beginning of the
> > file) and then restart postfix there is a problem:
> >
> > postfix is stopped (that's ok), then it should be started but it isn't
> > (in log something like
> > postfix/master[1649]: fatal: /etc/postfix/master.cf :
> > line 4: bad transport type:
> >
> ==)
> > and there is no error shown on console ( echo $? - shows 0 )
> >
> > and then when we try to restart (or start) postfix again - we can't -
> > unless we delete /var/lib/init.d/started/postfix file (it's not deleted
> > while restarting)
> >
> > is it a bug or we're doing sth wrong?!
>
> Postfix init script just calls postfix(1) which calls postfix-script
> which calls master(8).  Exit codes do not get back to the terminal.
>
> Use postfix status to check whether the mail system is running.
>
> --
> Eray
>

Thanks for the answer.
But as I said it doesn't start (there's no process, command postfix status
shows
postfix/postfix-script: the Postfix mail system is not running
but still /etc/init.d/postfix status show it's started)...

S it is stopped but the status of the service is wrongly updated (file
/var/lib/init.d/started/postfix exists)


regards
nichu


Re: [gentoo-user] [postfix - bug?] error in master.cf - problem with restart

2009-06-22 Thread Yiannis
On Mon, 22 Jun 2009 13:56:09 +0200
Marcin Niskiewicz  wrote:

> 2009/6/22 Eray Aslan 
> 
> > On 22.06.2009 13:02, Marcin Niskiewicz wrote:
> > > I noticed that when someone makes an error in master.cf
> > >  (for example write anything at the beginning
> > > of the file) and then restart postfix there is a problem:
> > >
> > > postfix is stopped (that's ok), then it should be started but it
> > > isn't (in log something like
> > > postfix/master[1649]: fatal: /etc/postfix/master.cf
> > > : line 4: bad transport type:
> > >
> > ==)
> > > and there is no error shown on console ( echo $? - shows 0 )
> > >
> > > and then when we try to restart (or start) postfix again - we
> > > can't - unless we delete /var/lib/init.d/started/postfix file
> > > (it's not deleted while restarting)
> > >
> > > is it a bug or we're doing sth wrong?!
> >
> > Postfix init script just calls postfix(1) which calls postfix-script
> > which calls master(8).  Exit codes do not get back to the terminal.
> >
> > Use postfix status to check whether the mail system is running.
> >
> > --
> > Eray
> >
> 
> Thanks for the answer.
> But as I said it doesn't start (there's no process, command postfix
> status shows
> postfix/postfix-script: the Postfix mail system is not running
> but still /etc/init.d/postfix status show it's started)...
> 
> S it is stopped but the status of the service is wrongly updated
> (file /var/lib/init.d/started/postfix exists)
> 
> 
> regards
> nichu

Try 

# /etc/init.d/postfix zap   

to reset the service  to the stoped state(since it is not running), and

# /etc/init.d/postfix start

to start it again

regards
yiannis
-- 
';
 .!   /X\__/X\
; ;   7%;`  %';
`. . (. Z  Z .;
 ; ;..'```'''..   T '/
  ; "  .. '% '^';
 '   . . .   '"".==.%
 `#  $.  V \
  .%  _./%&$'`\%%}_/
   <\__)x"<\_)x