Skip to content

Instantly share code, notes, and snippets.

@inokappa
Created July 9, 2015 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inokappa/2581e74612d9499f15b4 to your computer and use it in GitHub Desktop.
Save inokappa/2581e74612d9499f15b4 to your computer and use it in GitHub Desktop.
MySQL の死活監視スクリプトを起動する為の xinetd 設定
service mysqlchk_read01
{
flags = REUSE
socket_type = stream
port = 33061
wait = no
user = nobody
server = /opt/bin/mysqlchk_slave.sh
server_args = hogehoge-replica01.xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
per_source = UNLIMITED
}
service mysqlchk_read02
{
flags = REUSE
socket_type = stream
port = 33062
wait = no
user = nobody
server = /opt/bin/mysqlchk_slave.sh
server_args = hogehoge-replica02.xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
per_source = UNLIMITED
}
service mysqlchk_master
{
flags = REUSE
socket_type = stream
port = 33060
wait = no
user = nobody
server = /opt/bin/mysqlchk_master.sh
server_args = hogehoge.xxxxxxxxxxxxx.ap-northeast-1.rds.amazonaws.com
log_on_failure += USERID
disable = no
only_from = 127.0.0.1
per_source = UNLIMITED
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment