pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

pastebin private pastebin - collaborative debugging tool What's a private pastebin?

Posted by sm on Thu 13th May 15:02
download | new post

  1. # MySQL Service
  2.  
  3. description     "MySQL Server"
  4. author          "Mario Limonciello <superm1@ubuntu.com>"
  5.  
  6. start on (net-device-up IFACE=eth0
  7.           and local-filesystems)
  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=/etc/mysql/debian.cnf ping
  26.     do
  27.         sleep 1
  28.     done
  29.     exec $HOME/debian-start
  30. end script

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings