Skip to content

Instantly share code, notes, and snippets.

@kevinbin
Forked from aw/xinetd-mysqlchk
Created January 20, 2014 02:48
Show Gist options
  • Save kevinbin/8514097 to your computer and use it in GitHub Desktop.
Save kevinbin/8514097 to your computer and use it in GitHub Desktop.
#
# /etc/xinetd.d/mysqlchk
#
service mysqlchk_write
{
flags = REUSE
socket_type = stream
port = 9200
wait = no
user = nobody
server = /opt/mysqlchk_status.sh
log_on_failure += USERID
disable = no
only_from = 172.16.0.0/24 # recommended to put the IPs that need
# to connect exclusively (security purposes)
}
service mysqlchk_read
{
flags = REUSE
socket_type = stream
port = 9201
wait = no
user = nobody
server = /opt/mysqlchk_replication.sh
log_on_failure += USERID
disable = no
only_from = 172.16.0.0/24 # recommended to put the IPs that need
# to connect exclusively (security purposes)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment