OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 16-Oct-2006 12:52:52 Branch: HEAD Handle: 2006101611525101 Modified files: openpkg-src/mysql51 mysql51.spec rc.mysql Log: the %start has to be run under susr or the %status command does not work, nevertheless we really want to still start mysqld_safe as rusr Summary: Revision Changes Path 1.11 +1 -1 openpkg-src/mysql51/mysql51.spec 1.5 +5 -4 openpkg-src/mysql51/rc.mysql ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/mysql51/mysql51.spec ============================================================================ $ cvs diff -u -r1.10 -r1.11 mysql51.spec --- openpkg-src/mysql51/mysql51.spec 13 Oct 2006 17:30:24 -0000 1.10 +++ openpkg-src/mysql51/mysql51.spec 16 Oct 2006 10:52:51 -0000 1.11 @@ -39,7 +39,7 @@ Group: Database License: GPL Version: %{V_opkg} -Release: 20061013 +Release: 20061016 # package options %option with_server yes @@ . patch -p0 <<'@@ .' Index: openpkg-src/mysql51/rc.mysql ============================================================================ $ cvs diff -u -r1.4 -r1.5 rc.mysql --- openpkg-src/mysql51/rc.mysql 12 Oct 2006 06:04:31 -0000 1.4 +++ openpkg-src/mysql51/rc.mysql 16 Oct 2006 10:52:52 -0000 1.5 @@ -36,13 +36,14 @@ echo "mysql_usable=\"$mysql_usable\"" echo "mysql_active=\"$mysql_active\"" -%start -p 400 -u @l_rusr@ +%start -p 400 -u @l_susr@ rcService mysql enable yes || exit 0 rcService mysql active yes && exit 0 cd @l_prefix@ - @l_prefix@/bin/mysqld_safe >/dev/null 2>&1 \ - --pid-file="$mysql_pid_file" \ - --log-error="$mysql_err_log" & + cmd="@l_prefix@/bin/mysqld_safe" + cmd="$cmd --pid-file=$mysql_pid_file" + cmd="$cmd --log-error=$mysql_err_log" + su @l_rusr@ -c "$cmd </dev/null >/dev/null 2>&1 &" </dev/null >/dev/null 2>&1 %stop -p 600 -u @l_susr@ rcService mysql enable yes || exit 0 @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org