Lines 74-79
Link Here
|
74 |
fi |
74 |
fi |
75 |
|
75 |
|
76 |
# tail -n1 is critical as these we only want the last instance of the option |
76 |
# tail -n1 is critical as these we only want the last instance of the option |
|
|
77 |
local user=$(get_config "${MY_CNF}" user | tail -n1) |
77 |
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1) |
78 |
local basedir=$(get_config "${MY_CNF}" basedir | tail -n1) |
78 |
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1) |
79 |
local pidfile=$(get_config "${MY_CNF}" pid-file | tail -n1) |
79 |
local socket=$(get_config "${MY_CNF}" socket | tail -n1) |
80 |
local socket=$(get_config "${MY_CNF}" socket | tail -n1) |
Lines 113-119
Link Here
|
113 |
fi |
114 |
fi |
114 |
|
115 |
|
115 |
local piddir="${pidfile%/*}" |
116 |
local piddir="${pidfile%/*}" |
116 |
checkpath -d --owner mysql:mysql --mode 0755 "$piddir" |
117 |
checkpath -d --owner "${user}" --mode 0755 "$piddir" |
117 |
rc=$? |
118 |
rc=$? |
118 |
if [ $rc -ne 0 ]; then |
119 |
if [ $rc -ne 0 ]; then |
119 |
eerror "Directory $piddir for pidfile does not exist and cannot be created" |
120 |
eerror "Directory $piddir for pidfile does not exist and cannot be created" |
Lines 127-132
Link Here
|
127 |
start-stop-daemon \ |
128 |
start-stop-daemon \ |
128 |
${DEBUG:+"--verbose"} \ |
129 |
${DEBUG:+"--verbose"} \ |
129 |
--start \ |
130 |
--start \ |
|
|
131 |
--user "${user}" \ |
130 |
--exec "${basedir}"/sbin/mysqld \ |
132 |
--exec "${basedir}"/sbin/mysqld \ |
131 |
--pidfile "${pidfile}" \ |
133 |
--pidfile "${pidfile}" \ |
132 |
--background \ |
134 |
--background \ |