ptut-virtenv/virtual/bootloader

15 lines
210 B
Bash

#!/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;