Package: roxen4
Version: 4.0.325-1
Severity: critical
Tags: patch
Justification: breaks unrelated software
The roxen startup script /usr/share/roxen4/start incorrectly uses the
file /var/run/mysqld/mysqld.pid instead of /var/run/roxen4/mysqld.pid to
determine the pid of its mysql instance. Thus when roxen is stopped, the
normal mysql server is stopped, too!
The problem is exacerbated by the cron job /etc/cron.weekly/roxen4,
which restarts roxen, thus shutting down mysql once per week.
This patch fixes the problem:
--- start.2005-06-06T17:47:48 2005-03-21 12:35:30.000000000 +0100
+++ start 2005-06-06 17:48:08.000000000 +0200
@@ -678,13 +678,13 @@
# FIXME: Consider exiting here.
fi
if [ "x$keep_mysql" = "x" ] ; then
- if [ -f /var/run/mysqld/mysqld.pid ] ; then
- mysql_pid="`cat /var/run/mysqld/mysqld.pid 2>/dev/null`"
+ if [ -f /var/run/roxen4/mysqld.pid ] ; then
+ mysql_pid="`cat /var/run/roxen4/mysqld.pid 2>/dev/null`"
dp_no_nl "Shutting down MySQL."
kill "$mysql_pid" 2>/dev/null
# Give mysql 5 minutes to shut down.
timer=""
- while [ -f "/var/run/mysqld/mysqld.pid" -a \
+ while [ -f "/var/run/roxen4/mysqld.pid" -a \
"$timer" != "mmmmm" ] && \
kill -0 "$mysql_pid" 2>/dev/null; do
sleep 2
@@ -702,9 +702,9 @@
dp "Shutting down MySQL the hard way."
kill -9 "$mysql_pid" 2>/dev/null
fi
- if [ -f "/var/run/mysqld/mysqld.pid" ] && \
- [ "$mysql_pid" = "`cat /var/run/mysqld/mysqld.pid`" ]; then
- rm -f "/var/run/mysqld/mysqld.pid" 2>/dev/null
+ if [ -f "/var/run/roxen4/mysqld.pid" ] && \
+ [ "$mysql_pid" = "`cat /var/run/roxen4/mysqld.pid`" ]; then
+ rm -f "/var/run/roxen4/mysqld.pid" 2>/dev/null
fi
fi
fi
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages roxen4 depends on:
ii debconf 1.4.30.13 Debian configuration management sy
ii hostname 2.13 A utility to set/show the host nam
ii mysql-server 4.0.24-5 mysql database server binaries
ii pike7.4-image 7.4.117-1 Image module for Pike
ii pike7.4-mysql 7.4.117-1 Mysql module for Pike
ii procps 1:3.2.1-2 The /proc file system utilities
-- debconf information excluded
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]