blob: 3532a79c48241d07339b550802174a7459fd7b64 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/scripts/mysqld_safe.sh
2+++ b/scripts/mysqld_safe.sh
3@@ -247,7 +247,7 @@ wsrep_recover_position() {
4 return 1
5 fi
6
7- local wr_pidfile="$DATADIR/"`@HOSTNAME@`"-recover.pid"
8+ local wr_pidfile="$DATADIR/"$(uci get 'system.@system[0].hostname')"-recover.pid"
9
10 local wr_options="--disable-log-error --pid-file='$wr_pidfile'"
11
12@@ -668,7 +668,7 @@ then
13 * ) err_log="$DATADIR/$err_log" ;;
14 esac
15 else
16- err_log=$DATADIR/`@HOSTNAME@`.err
17+ err_log=$DATADIR/$(uci get 'system.@system[0].hostname').err
18 fi
19 fi
20
21@@ -754,7 +754,7 @@ fi
22
23 if test -z "$pid_file"
24 then
25- pid_file="`@HOSTNAME@`.pid"
26+ pid_file="$(uci get 'system.@system[0].hostname').pid"
27 fi
28 # MariaDB wants pid file without datadir
29 append_arg_to_args "--pid-file=$pid_file"