Fix macros paths in my.cnf
Create old location for pid file if it remained in my.cnf
This commit is contained in:
parent
eaa3746707
commit
745e0f9209
10
mariadb.spec
10
mariadb.spec
@ -62,6 +62,7 @@
|
|||||||
%bcond_without init_systemd
|
%bcond_without init_systemd
|
||||||
%bcond_with init_sysv
|
%bcond_with init_sysv
|
||||||
%global daemon_name %{name}
|
%global daemon_name %{name}
|
||||||
|
%global mysqld_pid_dir mysqld
|
||||||
%else
|
%else
|
||||||
%bcond_with init_systemd
|
%bcond_with init_systemd
|
||||||
%bcond_without init_sysv
|
%bcond_without init_sysv
|
||||||
@ -103,7 +104,7 @@
|
|||||||
|
|
||||||
Name: mariadb
|
Name: mariadb
|
||||||
Version: %{compatver}.%{bugfixver}
|
Version: %{compatver}.%{bugfixver}
|
||||||
Release: 2%{?with_debug:.debug}%{?dist}
|
Release: 3%{?with_debug:.debug}%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
Summary: A community developed branch of MySQL
|
Summary: A community developed branch of MySQL
|
||||||
@ -677,6 +678,9 @@ rm -f %{buildroot}%{_sysconfdir}/my.cnf
|
|||||||
%if %{with init_systemd}
|
%if %{with init_systemd}
|
||||||
install -D -p -m 644 scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service
|
install -D -p -m 644 scripts/mysql.service %{buildroot}%{_unitdir}/%{daemon_name}.service
|
||||||
install -D -p -m 0644 scripts/mysql.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
install -D -p -m 0644 scripts/mysql.tmpfiles.d %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%if 0%{?mysqld_pid_dir:1}
|
||||||
|
echo "d %{_localstatedir}/run/%{mysqld_pid_dir} 0755 mysql mysql -" >>%{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# install SysV init script
|
# install SysV init script
|
||||||
@ -1133,6 +1137,10 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 22 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-3
|
||||||
|
- Fix macros paths in my.cnf
|
||||||
|
- Create old location for pid file if it remained in my.cnf
|
||||||
|
|
||||||
* Fri Dec 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-2
|
* Fri Dec 05 2014 Honza Horak <hhorak@redhat.com> - 1:10.0.15-2
|
||||||
- Rework usage of macros and remove some compatibility artefacts
|
- Rework usage of macros and remove some compatibility artefacts
|
||||||
|
|
||||||
|
@ -17,8 +17,8 @@ symbolic-links=0
|
|||||||
# @INSTALL_SYSCONF2DIR@/server.cnf (part of mariadb-server).
|
# @INSTALL_SYSCONF2DIR@/server.cnf (part of mariadb-server).
|
||||||
# It doesn't matter that we set these settings only for [mysqld] here,
|
# It doesn't matter that we set these settings only for [mysqld] here,
|
||||||
# because they will be read and used in mysqld_safe as well.
|
# because they will be read and used in mysqld_safe as well.
|
||||||
log-error=@LOG_LOCATION_COMPAT@
|
log-error=@LOG_LOCATION@
|
||||||
pid-file=@PID_FILE_DIR_COMPAT@/@DAEMON_NAME_COMPAT@.pid
|
pid-file=@PID_FILE_DIR@/@DAEMON_NAME@.pid
|
||||||
|
|
||||||
[mysqld_safe]
|
[mysqld_safe]
|
||||||
|
|
||||||
|
@ -1,2 +1 @@
|
|||||||
d @PID_FILE_DIR@ 0755 mysql mysql -
|
d @PID_FILE_DIR@ 0755 mysql mysql -
|
||||||
d @PID_FILE_DIR_COMPAT@ 0755 mysql mysql -
|
|
||||||
|
Loading…
Reference in New Issue
Block a user