On 2011-11-18 15:16, Raoul Bhatia [IPAX] wrote:
> 1. we do not capture the "the Postfix mail system is not running"
> output. maybe this is a result from running in an interactive shell?
i can answer this myself.
postfix, at least on debian, only displays the output to stdout if
there is a connected terminal.
e.g.
> # postfix blar; echo $?
> postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
> 1
> # ssh localhost postfix blar; echo $?
> 1
so i do not know whether there is any sense in logging
the postfix_running output.
> 2. we log an error (rc 1) which actually is expected and good
> (postfix is not running; we're eligible to start it)
>
> the same happens upon stopping postfix:
>> Nov 18 15:01:07 m01 crmd: [2063]: info: do_lrm_rsc_op: Performing key=116:55885:0:9582c8d2-c69a-4d79-91f6-04ea7bbe1853 op=m-mail-postfix_stop_0 )
>> Nov 18 15:01:07 m01 lrmd: [2060]: info: rsc:m-mail-postfix stop[175] (pid 10420)
>> Nov 18 15:01:08 m01 postfix/postfix-script[10632]: the Postfix mail system is not running
>> Nov 18 15:01:08 m01 postfix[10420]: INFO: Postfix status: ''. 1
>> Nov 18 15:01:08 m01 postfix/postfix-script[10652]: the Postfix mail system is not running
>> Nov 18 15:01:08 m01 postfix[10420]: INFO: Postfix status: ''. 1
>> Nov 18 15:01:08 m01 postfix[10420]: INFO: Postfix stopped.
>> Nov 18 15:01:08 m01 lrmd: [2060]: info: operation stop[175] on m-mail-postfix for client 2063: pid 10420 exited with return code 0
this is still a pending issue.
thanks,
raoul
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. r.bhatia@ipax.at
Technischer Leiter
IPAX - Aloy Bhatia Hava OG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. office@ipax.at
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
> 1. we do not capture the "the Postfix mail system is not running"
> output. maybe this is a result from running in an interactive shell?
i can answer this myself.
postfix, at least on debian, only displays the output to stdout if
there is a connected terminal.
e.g.
> # postfix blar; echo $?
> postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
> 1
> # ssh localhost postfix blar; echo $?
> 1
so i do not know whether there is any sense in logging
the postfix_running output.
> 2. we log an error (rc 1) which actually is expected and good
> (postfix is not running; we're eligible to start it)
>
> the same happens upon stopping postfix:
>> Nov 18 15:01:07 m01 crmd: [2063]: info: do_lrm_rsc_op: Performing key=116:55885:0:9582c8d2-c69a-4d79-91f6-04ea7bbe1853 op=m-mail-postfix_stop_0 )
>> Nov 18 15:01:07 m01 lrmd: [2060]: info: rsc:m-mail-postfix stop[175] (pid 10420)
>> Nov 18 15:01:08 m01 postfix/postfix-script[10632]: the Postfix mail system is not running
>> Nov 18 15:01:08 m01 postfix[10420]: INFO: Postfix status: ''. 1
>> Nov 18 15:01:08 m01 postfix/postfix-script[10652]: the Postfix mail system is not running
>> Nov 18 15:01:08 m01 postfix[10420]: INFO: Postfix status: ''. 1
>> Nov 18 15:01:08 m01 postfix[10420]: INFO: Postfix stopped.
>> Nov 18 15:01:08 m01 lrmd: [2060]: info: operation stop[175] on m-mail-postfix for client 2063: pid 10420 exited with return code 0
this is still a pending issue.
thanks,
raoul
--
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc. email. r.bhatia@ipax.at
Technischer Leiter
IPAX - Aloy Bhatia Hava OG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. office@ipax.at
1190 Wien tel. +43 1 3670030
FN 277995t HG Wien fax. +43 1 3670030 15
____________________________________________________________________
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/