#!/bin/sh sleep 3; # # run - runit startup script for mysql # # Developed by Lubomir Host 'rajo' # Copyright (c) 2005 Platon SDG, http://platon.sk/ # Licensed under terms of GNU General Public License. # All rights reserved. # # Changelog: # 2005-05-12 - created # # $Platon: scripts/shell/runit-startup-scripts/etc/runit/mysql/run,v 1.1 2005/05/16 13:20:59 rajo Exp $ cd / umask 077 export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" # mysqladmin likes to read /root/.my.cnf. This is usually not what I want # as many admins e.g. only store a password without a username there and # so break my scripts. export HOME=/etc/mysql/ MYSQLADMIN='/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf' trap "$MYSQLADMIN shutdown" 0 trap 'exit 2' 1 2 3 15 /usr/bin/mysqld_safe & wait