Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2006, 12:47 AM
map7 map7 is offline
Junior Member
 
Join Date: Jun 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default PCBSD 1.11 and PAMP5.0 broken
I had PAMP5.0 all working under 1.1, only today did I update to 1.11 and I noticed that mysql from the PAMP install wouldn't start up properly.

I had to go and start it myself with the 'mysqld_safe &' command under Konsole every time I rebooted. What should I do so that it starts up using the script properly?


Here is my default PAMP installed script in the /usr/local/etc/rc.d directory.
Code:
. /etc/rc.subr

name="mysql"
rcvar=`set_rcvar`

load_rc_config $name

: ${mysql_enable="NO"}
: ${mysql_limits="NO"}
: ${mysql_dbdir="/var/db/mysql"}
: ${mysql_args=""}

mysql_user="mysql"
mysql_limits_args="-e -U ${mysql_user}"
pidfile="${mysql_dbdir}/`/bin/hostname`.pid"
command="/usr/local/bin/mysqld_safe"
command_args="--defaults-extra-file=${mysql_dbdir}/my.cnf --user=${mysql_user} -
-datadir=${mysql_dbdir} --pid-file=${pidfile} ${mysql_args} > /dev/null &"
procname="/usr/local/libexec/mysqld"
start_precmd="${name}_prestart"
mysql_install_db="/usr/local/bin/mysql_install_db"
mysql_install_db_args="--ldata=${mysql_dbdir}"

mysql_create_auth_tables()
{
        eval $mysql_install_db $mysql_install_db_args >/dev/null
        [ $? -eq 0 ] && chown -R ${mysql_user}:${mysql_user} ${mysql_dbdir}
}

mysql_prestart()
{
        if [ ! -d "${mysql_dbdir}/mysql/." ]; then
                mysql_create_auth_tables || return 1
        fi
        if checkyesno mysql_limits; then
                eval `/usr/bin/limits ${mysql_limits_args}` 2>/dev/null
        else
                return 0
        fi
}

run_rc_command "$1"
The error message I get from this when starting it is:
Console: not found
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PCBSD Tragedy. My House was Broken into. lanruisen The Lounge 9 05-24-2008 01:19 PM
What's the deal with PAMP / PAMP5 hazard PBI Discussion 2 04-24-2008 07:46 AM
installed pamp5.2 with php4 now how do I run a php web page? webhostingdesign General Questions 8 08-29-2007 06:36 PM
PAMP5.2 Can't set MySQL root password - locked out dejamuse PBI Discussion 2 07-19-2007 04:59 AM
some links broken on www.pcbsd.org antik The Lounge 6 11-19-2005 10:55 AM


All times are GMT. The time now is 12:47 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.