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
#!/bin/sh | |
su - sleep -c "sleep 60 & echo \$! > /tmp/sleep.pid" | |
mv /tmp/sleep.pid $1 |
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
check process sleep with pidfile /var/run/sleep.pid | |
start program "/etc/init.d/sleep start" with timeout 60 seconds | |
stop program "/etc/init.d/sleep stop" | |
if 5 restarts within 5 cycles then unmonitor |
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
#!/bin/sh | |
# | |
# chkconfig: - 99 01 | |
. /etc/rc.d/init.d/functions | |
BASE=`basename $0` | |
PIDFILE="/var/run/${BASE}.pid" | |
LOCKFILE="/var/lock/subsys/${BASE}" |
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
#!/bin/sh | |
sleep 60 & | |
echo $! > $1 |
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
mysql -u xxxxxxxx_user -p -h xxx.xxx.xxx.xxx xxxxxxxx < dump.sql |
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
CREATE DATABASE xxxxxxxx DEFAULT CHARACTER SET utf8; | |
CREATE USER xxxxxxxx_user IDENTIFIED BY 'xxxxxxxx_pass'; | |
GRANT ALL ON xxxxxxxx.* TO xxxxxxxx_user; |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"ProjectName": { | |
"Type": "String", | |
"Default": "suzlab" | |
}, | |
"DbSubnetGroupName": { | |
"Type": "String", | |
"Default": "xxxxxxxx" |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"ProjectName": { | |
"Type": "String", | |
"Default": "suzlab" | |
}, | |
"DbSubnetGroupName": { | |
"Type": "String", | |
"Default": "xxxxxxxx" |
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
openssl req -new -nodes -x509 \ | |
-subj '/C=JP/ST=Tokyo/L=Minato-ku/O=cloudpack/CN=test.xxx' \ | |
-keyout test.key -out test.crt | |
aws iam upload-server-certificate \ | |
--server-certificate-name test \ | |
--certificate-body file://test.crt \ | |
--private-key file://test.key |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"ProjectName": { | |
"Type": "String", | |
"Default": "Cloudpack" | |
}, | |
"RoleName": { | |
"Type": "String", | |
"Default": "Ecs" |
NewerOlder