This file contains 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
# grep mysql /etc/rc.conf | |
mysql_limits="YES" | |
mysql_dbdir="/server/mysql/data" | |
mysql_optfile="/server/mysql/my.cnf" | |
mysql_enable="YES" | |
mysql_args="" |
This file contains 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
#!/bin/sh | |
######################################### | |
# CAUTION, ONLY DO THIS ON A TEST SYSTEM | |
######################################### | |
# use GELI to onetime encrypt 4 hard drives to test with | |
for i in `seq 0 3` ; do geli onetime /dev/ada$i ; done | |
# append the ELI devices to a DEV variable |
This file contains 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
var keymap = { | |
'0': 48, | |
'1': 49, | |
'2': 50, | |
'3': 51, | |
'4': 52, | |
'5': 53, | |
'6': 54, | |
'7': 55, | |
'8': 56, |
This file contains 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
# this config needs haproxy-1.1.28 or haproxy-1.2.1 | |
global | |
log 127.0.0.1 local0 | |
log 127.0.0.1 local1 notice | |
#log loghost local0 info | |
maxconn 4096 | |
#chroot /usr/share/haproxy | |
user haproxy | |
group haproxy |
This file contains 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
#!/bin/bash | |
# from https://gist.github.com/cpetersen/581657 | |
NAME=$1 | |
HOME="/root" | |
PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" | |
/usr/bin/sudo -u root /usr/local/bin/couchdb -b -a /mnt/sde/$NAME/couchdb.ini -p /var/run/couchdb-$NAME.pid -e /var/log/couchdb-$NAME.err -o /var/log/couchdb-$NAME.out | |
sleep 1 | |
echo '' >> /var/run/couchdb-$NAME.pidroot |
This file contains 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
################################################################# | |
# couchdb | |
################################################################ | |
#check process couchdb by port number | |
check host couchdb with address localhost | |
if failed port 5984 then alert | |
if failed url https://localhost:5984/ and content == '"couchdb"' then alert | |
group couchdb |
This file contains 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
################################################################# | |
# couchdb | |
# http://nikosmarkopoulos.com/monitoring-couchdb-with-monit/ | |
################################################################ | |
check process couchdb | |
with pidfile /var/run/couchdb/couchdb.pid | |
start program = "/etc/init.d/couchdb start" | |
stop program = "/etc/init.d/couchdb stop" | |
if failed host localhost port 5984 proto http then restart |
OlderNewer