Mageia Bugzilla – Attachment 8937 Details for
Bug 20143
mysqld is not Active after start
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
mysqld_safe patch to test systemd notify mechanism
mysqld_safe.patch (text/plain), 797 bytes, created by
Arne Spiegelhauer
on 2017-02-06 13:02:02 CET
(
hide
)
Description:
mysqld_safe patch to test systemd notify mechanism
Filename:
MIME Type:
Creator:
Arne Spiegelhauer
Created:
2017-02-06 13:02:02 CET
Size:
797 bytes
patch
obsolete
>--- /usr/bin/mysqld_safe.orig 2017-01-29 20:16:41.000000000 +0100 >+++ /usr/bin/mysqld_safe 2017-02-06 12:25:43.851172322 +0100 >@@ -194,7 +194,11 @@ > then > # We'd prefer to exec $cmd here, but SELinux needs to be fixed first > #/usr/bin/logger "Running mysqld: $cmd" >- eval "$cmd &" >+ >+ # standard out and standard err must be open, otherwise mysqld will reuse >+ # one for /var/lib/mysql/aria_log_control. >+ exec 1>>$err_log 2>>$err_log >+ exec $1 > exit 0 > else > #echo "Running mysqld: [$cmd]" >@@ -973,7 +977,7 @@ > [ $dry_run -eq 1 ] && return > > # Avoid 'nohup: ignoring input' warning >-test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null" >+#test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null" > > log_notice "Starting $MYSQLD daemon with databases from $DATADIR" >
--- /usr/bin/mysqld_safe.orig 2017-01-29 20:16:41.000000000 +0100 +++ /usr/bin/mysqld_safe 2017-02-06 12:25:43.851172322 +0100 @@ -194,7 +194,11 @@ then # We'd prefer to exec $cmd here, but SELinux needs to be fixed first #/usr/bin/logger "Running mysqld: $cmd" - eval "$cmd &" + + # standard out and standard err must be open, otherwise mysqld will reuse + # one for /var/lib/mysql/aria_log_control. + exec 1>>$err_log 2>>$err_log + exec $1 exit 0 else #echo "Running mysqld: [$cmd]" @@ -973,7 +977,7 @@ [ $dry_run -eq 1 ] && return # Avoid 'nohup: ignoring input' warning -test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null" +#test -n "$NOHUP_NICENESS" && cmd="$cmd < /dev/null" log_notice "Starting $MYSQLD daemon with databases from $DATADIR"
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 20143
:
8915
|
8925
|
8936
| 8937 |
8938
|
8944
|
8952
|
8953
|
8954
|
8955