propozycja zmian w mysql.{init,sysconfig}
Tomasz Kłoczko
kloczek w rudy.mif.pg.gda.pl
Śro, 26 Lut 2003, 00:37:11 CET
Index: mysql.init
===================================================================
RCS file: /cvsroot/SOURCES/mysql.init,v
retrieving revision 1.28
diff -u -r1.28 mysql.init
--- mysql.init 25 Feb 2003 23:19:10 -0000 1.28
+++ mysql.init 25 Feb 2003 23:34:46 -0000
@@ -87,7 +87,12 @@
chmod 640 $MYSQLD_ERRLOG
[ -z "$DEFAULT_SERVICE_RUN_NICE_LEVEL" ] && DEFAULT_SERVICE_RUN_NICE_LEVEL=0
- TMPDIR=/tmp nice -n ${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} /usr/sbin/mysqld --defaults-file=$MYSQLD_CONFIG >>$MYSQLD_ERRLOG 2>&1 &
+ TMPDIR=/tmp nice -n ${SERVICE_RUN_NICE_LEVEL:-$DEFAULT_SERVICE_RUN_NICE_LEVEL} \
+ /usr/sbin/mysqld \
+ $([ -n "$MYSQLD_CONFIG" -a "$MYSQLD_CONFIG" != "/etc/mysqld.conf" ] && \
+ echo "--defaults-file=$MYSQLD_CONFIG") \
+ $([ -n "$BIND_TO_ADDRES" ] && echo "--bind-address=$BIND_TO_ADDRES") \
+ >>$MYSQLD_ERRLOG 2>&1 &
sleep 1
deltext
if ps -C mysqld >/dev/null 2>&1; then
Index: mysql.sysconfig
===================================================================
RCS file: /cvsroot/SOURCES/mysql.sysconfig,v
retrieving revision 1.6
diff -u -r1.6 mysql.sysconfig
--- mysql.sysconfig 31 Jan 2003 20:11:54 -0000 1.6
+++ mysql.sysconfig 25 Feb 2003 23:34:46 -0000
@@ -2,3 +2,13 @@
# Define nice level for mysql
SERVICE_RUN_NICE_LEVEL="+0"
+
+# Path to mysqld config file (default is /etc/mysqld.conf)
+#MYSQLD_CONFIG=/etc/mysqld.conf
+
+# Path to mysqld data dir (default id /usr/lib/mysql)
+#MYSQL_DATA_DIR=/usr/lib/mysql
+
+# Uncomment and fill $BIND_TO_ADDRES variable if you want bind mysqld to
+# specified IP addres
+#BIND_TO_ADDRES=""
kloczek
--
-----------------------------------------------------------
*Ludzie nie mają problemów, tylko sobie sami je stwarzają*
-----------------------------------------------------------
Tomasz Kłoczko, sys adm @zie.pg.gda.pl|*e-mail: kloczek w rudy.mif.pg.gda.pl*
Więcej informacji o liście dyskusyjnej pld-devel-pl