Guest User

Untitled

a guest
Nov 23rd, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. [malev@/etc/init] cat mysql.conf
  2. # MySQL Service
  3.  
  4. description "MySQL Server"
  5. author "Mario Limonciello <superm1@ubuntu.com>"
  6.  
  7. start on runlevel [2345]
  8. stop on runlevel [016]
  9.  
  10. respawn
  11.  
  12. env HOME=/etc/mysql
  13. umask 007
  14.  
  15. pre-start script
  16. #Sanity checks
  17. [ -r $HOME/my.cnf ]
  18. [ -d /var/run/mysqld ] || install -m 755 -o mysql -g root -d /var/run/mysqld
  19. LC_ALL=C BLOCKSIZE= df --portability /var/lib/mysql/. | tail -n 1 | awk '{ exit ($4<4096) }'
  20. end script
  21.  
  22. exec /usr/sbin/mysqld
  23.  
  24. post-start script
  25. while ! /usr/bin/mysqladmin --defaults-file=$HOME/debian.cnf ping
  26. do
  27. sleep 1
  28. done
  29. exec $HOME/debian-start
  30. end script
Add Comment
Please, Sign In to add comment