Absolut path for default value for pid file and error log

This commit is contained in:
Honza Horak 2014-07-28 19:26:09 +02:00
parent 842d2220fe
commit 088c1e447f
2 changed files with 3 additions and 2 deletions

View File

@ -1110,6 +1110,7 @@ fi
%changelog
* Mon Jul 28 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-6
- Use explicit sysconfdir
- Absolut path for default value for pid file and error log
* Tue Jul 22 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.12-5
- Hardcoded paths removed to work fine in chroot

View File

@ -48,11 +48,11 @@ datadir="$result"
# log-error might be defined in mysqld_safe and mysqld sections,
# the former has bigger priority
get_mysql_option "$server_sections" log-error "`hostname`.err"
errlogfile="$result"
errlogfile="$datadir/$result"
get_mysql_option "$server_sections" socket "@MYSQL_UNIX_ADDR@"
socketfile="$result"
get_mysql_option "$server_sections" pid-file "`hostname`.pid"
pidfile="$result"
pidfile="$datadir/$result"