Created
April 21, 2011 15:52
-
-
Save jinzhu/934816 to your computer and use it in GitHub Desktop.
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
| while true | |
| do | |
| sleep 0.5 | |
| if [ -f /dev/sdj ]; then | |
| echo `date` > SdjMountedAt | |
| sudo mount /dev/sdj /mnt/DATA | |
| sudo /etc/init.d/httpd start | |
| sudo /etc/init.d/mysqld start | |
| cd /mnt/DATA/mysql-server-tritonn; sudo ./bin/mysqld_safe & | |
| sudo su postgres -c '/usr/local/pgsql/bin/pg_ctl -D /mnt/DATA/pgsql -l /mnt/DATA/pgsql/log start' | |
| break; | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment