Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [malev@/etc/init] cat mysql.conf
- # MySQL Service
- description "MySQL Server"
- author "Mario Limonciello <superm1@ubuntu.com>"
- start on runlevel [2345]
- stop on runlevel [016]
- respawn
- env HOME=/etc/mysql
- umask 007
- pre-start script
- #Sanity checks
- [ -r $HOME/my.cnf ]
- [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld
- LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 | awk '{ exit ($4<4096) }'
- end script
- exec /usr/sbin/mysqld
- post-start script
- while ! /usr/bin/mysqladmin --defaults-file=$HOME/debian.cnf ping
- do
- sleep 1
- done
- exec $HOME/debian-start
- end script
Add Comment
Please, Sign In to add comment