diff options
author | James Meyer <james.meyer@operamail.com> | 2009-04-10 16:44:42 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-04-10 16:44:42 (GMT) |
commit | 5e80643fcd0df6419f18bccba6594a251eb2d179 (patch) | |
tree | 02eba330ea85211042a4fa4fcb0c9147c77d3e8a /abs/core-testing/runit-scripts/runitscripts/services/mysql | |
parent | 6a486a28262c43e8ae2c1a742b4ffd4b29eaf0d0 (diff) | |
download | linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.zip linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.gz linhes_pkgbuild-5e80643fcd0df6419f18bccba6594a251eb2d179.tar.bz2 |
runit-scripts: added fbsplash-runit.sh and general cleanup to make text pretty
Diffstat (limited to 'abs/core-testing/runit-scripts/runitscripts/services/mysql')
-rwxr-xr-x | abs/core-testing/runit-scripts/runitscripts/services/mysql/run | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/abs/core-testing/runit-scripts/runitscripts/services/mysql/run b/abs/core-testing/runit-scripts/runitscripts/services/mysql/run index bfb367f..6b2f95a 100755 --- a/abs/core-testing/runit-scripts/runitscripts/services/mysql/run +++ b/abs/core-testing/runit-scripts/runitscripts/services/mysql/run @@ -1,19 +1,23 @@ #!/bin/bash exec 2>&1 +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Starting Mysql" MYSQLD_ROOT="/data/srv/mysql" # source application-specific settings [ -f /etc/conf.d/mysqld ] && . /etc/conf.d/mysqld if [ ! `egrep '^mysql:' /etc/group` ]; then - stat_busy "Adding mysql group" + stat_runit "Adding mysql group" groupadd -g 89 mysql - stat_done + fi if [ ! `egrep '^mysql:' /etc/passwd` ]; then - stat_busy "Adding mysql user" + stat_runit "Adding mysql user" useradd -u 89 -g mysql -d $MYSQLD_ROOT -s /bin/false mysql [ -d $MYSQLD_ROOT ] && chown -R mysql.mysql $MYSQLD_ROOT - stat_done + fi if [ ! -d $MYSQLD_ROOT ]; then @@ -26,4 +30,5 @@ if [ ! -e /var/log/mysqld.log ]; then touch /var/log/mysqld.log chown mysql /var/log/mysqld.log fi + exec /usr/sbin/mysqld --skip-name-resolve -u mysql 2>/dev/null >/dev/null |