This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # author: weizhifeng | |
| status=$(ps aux|grep haproxy | grep -v grep | grep -v bash | wc -l) | |
| if [ "${status}" = "0" ]; then | |
| /etc/init.d/haproxy start | |
| status2=$(ps aux|grep haproxy | grep -v grep | grep -v bash |wc -l) | |
| if [ "${status2}" = "0" ]; then | |
| /etc/init.d/keepalived stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # rsyslog configuration file | |
| # note that most of this config file uses old-style format, | |
| # because it is well-known AND quite suitable for simple cases | |
| # like we have with the default config. For more advanced | |
| # things, RainerScript configuration is suggested. | |
| # For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html | |
| # If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html | |
| #### MODULES #### |
OlderNewer