15 lines
210 B
Plaintext
15 lines
210 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# 1. Start mysql
|
||
|
nohup mysqld_safe > /var/log/mysql_log &
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
# 10. Create lock file
|
||
|
touch /boot.lock;
|
||
|
chmod 777 /boot.lock;
|
||
|
|
||
|
# 11. Run while lock exists
|
||
|
while [ -f /boot.lock ]; do sleep 1; done;
|