mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
434 B

  1. #!/bin/sh
  2. #
  3. # ROCK Linux: /etc/rc.d/init.d/mysql
  4. #
  5. # Desc: the MySQL server
  6. # Runlevel: 30 rcX
  7. #
  8. main_begin
  9. block_begin(start, `Starting MySQL Server.')
  10. check(`(D_prefix/bin/mysqld_safe >/dev/null 2>&1 &)')
  11. block_end
  12. block_begin(stop, `Stopping MySQL Server.')
  13. check(`killall mysqld')
  14. block_end
  15. block_begin(restart, `Restarting MySQL Server.')
  16. check(`killall -1 mysqld')
  17. block_end
  18. main_end