1 |
charliebrady |
1.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 |