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