NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Mysql server does not start in boot time NetBSD 6.0



In message 
<CANKsMpE7V_XsBkcnrof3g4or-93GQxqJ5Pmc8dYiW6T8QwH=3A%mail.gmail.com@localhost>
        on Thu, 27 Dec 2012 05:16:24 -0500,
        Edgar Rodolfo <rodolfobsd%gmail.com@localhost> wrote:
>> On Dec 26, 2012, at 01:32, Edgar Rodolfo <rodolfobsd%gmail.com@localhost> 
>> wrote:
...
>> As a workaround, can you try to add a "sleep 5" after the command that
>> starts mysqld in /etc/rc.d/mysqld (see the attached diff)? This works for me
>> in all the cases that I have tested (i386 and amd64, NetBSD 6 and current).
Or simply redirect mysqld's output.

-- 
Takahiro Kambe <taca%back-street.net@localhost>


--- /usr/pkg/share/examples/rc.d/mysqld 2012-12-13 14:39:06.000000000 +0900
+++ etc/rc.d/mysqld     2012-12-27 19:56:57.000000000 +0900
@@ -75,7 +75,7 @@
        cd /usr/pkg
        ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${pidfile} ${mysqld_flags} \
-                  ${thread_flags} &
+                  ${thread_flags} >/dev/null 2>&1 &
 }
 
 if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then


Home | Main Index | Thread Index | Old Index