/[smeserver]/rpms/e-smith-mysql/sme8/e-smith-mysql-1.13.0-logging.patch
ViewVC logotype

Contents of /rpms/e-smith-mysql/sme8/e-smith-mysql-1.13.0-logging.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Tue Oct 7 18:44:56 2008 UTC (15 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
New streams

1 --- e-smith-mysql-1.13.0/root/etc/rc.d/init.d/mysql.init.logging 2006-03-16 01:44:28.000000000 -0500
2 +++ e-smith-mysql-1.13.0/root/etc/rc.d/init.d/mysql.init 2008-10-06 10:55:19.000000000 -0400
3 @@ -45,11 +45,17 @@
4 F=$(basename $link | sed s/S[0-9][0-9]//)
5 case $F in
6 *.sql)
7 - action "Loading $F into mysql" /usr/bin/mysql < $link && /bin/rm $link
8 - ;;
9 + action "Loading $F into mysql" perl -e '
10 + open (STDERR, "|/usr/bin/logger -p local1.info -t mysql.init");
11 + open (STDOUT, ">&STDERR");
12 + exec "/usr/bin/mysql";' < $link && /bin/rm $link
13 + ;;
14 *)
15 - action "Loading $F into mysql" $link && /bin/rm $link
16 - ;;
17 + action "Loading $F into mysql" perl -e '
18 + open (STDERR, "|/usr/bin/logger -p local1.info -t mysql.init");
19 + open (STDOUT, ">&STDERR");
20 + exec shift; ' $link && /bin/rm $link
21 + ;;
22 esac
23 # Record any failure for the final return value.
24 if [ $? -ne 0 ]; then

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed