tag #604233 + patch thanks Uh sorry but this is realy a ugly bit of code :( It is bad to check for a running daemon this way and also to just start it then, anway here is a short quick patch..
the mysql init script provides a status command, so you can e.g. just use: /etc/init.d/mysql status > /dev/null if [ $? != 0 ]; then invoke-rc.d mysql start fi -- /* Mit freundlichem Gruß / With kind regards, Patrick Matthäi GNU/Linux Debian Developer E-Mail: pmatth...@debian.org patr...@linux-dev.org Comment: Always if we think we are right, we were maybe wrong. */
diff -Naur sitebar-3.3.9.orig//debian/postinst sitebar-3.3.9//debian/postinst --- sitebar-3.3.9.orig//debian/postinst 2010-11-29 19:42:32.000000000 +0100 +++ sitebar-3.3.9//debian/postinst 2010-11-29 19:45:42.000000000 +0100 @@ -35,7 +35,7 @@ pidfile=`mysqld_get_param pid-file` ps_alive=0 if [ -f "$pidfile" ] && ps `cat $pidfile` >/dev/null 2>&1; then ps_alive=1; fi - if [ $ps_alive = 0 ]; then mysqld_safe > /dev/null 2>&1 & fi + if [ $ps_alive = 0 ]; then invoke-rc.d mysql start > /dev/null 2>&1 & fi fi case "$1" in
signature.asc
Description: OpenPGP digital signature