Init script files for services..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Init script files for services..

Dear all,

I have mail server setup in 2-nodes cluster. Mail services are postfix and TrendMicro IMSS.

TrendMicro not rc.script standards (There is no status checking part) so I wrote a script to start | stop | restart | status for trendmicro.

Now the setup is working smoothly but..

If I stop postfix manually, the cluster package service wont start automatically - I do need to start postfix manually and disable/enable using clusvcadm, service to go online with cluster. Here is the log: /etc/log/messages

clurgmgrd: [2186]: <info> Executing /etc/init.d/postfix status

clurgmgrd[2186]: <notice> status on script "postfix_script" returned 3 (function not implemented)

clurgmgrd[2186]: <notice> Stopping service MAIL

clurgmgrd: [2186]: <info> Executing /etc/init.d/rc.trend stop

clurgmgrd: [2186]: <info> Executing /etc/init.d/postfix stop

postfix: postfix stop failed

clurgmgrd[2186]: <notice> stop on script "postfix_script" returned 1 (generic error)

clurgmgrd[2186]: <crit> #12: RG MAIL failed to stop; intervention required

clurgmgrd[2186]: <notice> Service MAIL is failed

But when I manually stop TrendMicro, it will successfully restart. Here is the log: /etc/log/messages

clurgmgrd: [2186]: <info> Executing /etc/init.d/postfix status

clurgmgrd: [2186]: <info> Executing /etc/init.d/rc.trend status

clurgmgrd[2186]: <notice> status on script "imss_script" returned 1 (generic error)

clurgmgrd[2186]: <notice> Stopping service MAIL

clurgmgrd: [2186]: <info> Executing /etc/init.d/rc.trend stop

clurgmgrd: [2186]: <info> Executing /etc/init.d/postfix stop

postfix:  succeeded

clurgmgrd: [2186]: <info> Removing IPv4 address 192.168.40.3 from bond0

clurgmgrd[2186]: <notice> Service MAIL is recovering

clurgmgrd[2186]: <notice> Recovering failed service MAIL

clurgmgrd: [2186]: <info> Adding IPv4 address 192.168.40.3 to bond0

clurgmgrd: [2186]: <info> Executing /etc/init.d/rc.trend start

clurgmgrd: [2186]: <info> Executing /etc/init.d/postfix start

postfix:  succeeded

clurgmgrd[2186]: <notice> Service MAIL started

clurgmgrd: [2186]: <info> Executing /etc/init.d/rc.trend status

clurgmgrd: [2186]: <info> Executing /etc/init.d/postfix status

What I can feel is this is due to the error report while the service is checking its status:

What postfix reports - clurgmgrd[2186]: <notice> status on script "postfix_script" returned 3 (function not implemented)

And TrendMicro (my script) reports - clurgmgrd[2186]: <notice> status on script "imss_script" returned 1 (generic error)

Manually checking the status on stopped services:

/etc/init.d/postfix status

master is stopped

/etc/init.d/rc.trend status

Service IMSS is stopped...

Do I have to write a script for postfix to print what I done as on IMSS?

How do we no the returned # is because of what?

Your support on this issue is highly appreciated

Thanks in advance

- Hirantha

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux