[Pacemaker] postfix resource agent using unsupported "status" command

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Fri May 20 10:10:01 UTC 2011


On 05/20/2011 12:23 AM, Noah Rømer wrote:
> The pacemaker resource agent (downloaded from
> https://github.com/raoulbhatia/resource-agents/blob/master/heartbeat/postfix)
> has a function called "running" that attempts to determine if the
> requested postfix instance is running by doing:
> 
> "$binary $OPTION_CONFIG_DIR status >/dev/null 2>&1"
> 
> This causes the resource agent to fail on starting the service. The
> postfix command says:
> 
> postfix/postfix-script: fatal: usage: postfix start (or stop, reload,
> abort, flush, check, set-permissions, upgrade-configuration)
> 
> It doesn't appear to support the status command, the way the init
> script (/etc/init.d/postfix) does.

"postfix status" is provided by /etc/postfix/postfix-script
i today noticed that it has been added in postfix 2.5:

> status)
> 
>         $daemon_directory/master -t 2>/dev/null && {
>                 $INFO the Postfix mail system is not running
>                 exit 1
>         }
>         $INFO the Postfix mail system is running: PID: `sed 1q pid/master.pid`
>         exit 0
>         ;;

it should be possible to implement something like this in the ra as a
fallback mechanism (i prefer relying on postfix-script's checks if the
environment is correctly set up)


out of curiosity: which version of postfix do you run and why?

thanks,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OG          web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________




More information about the Pacemaker mailing list