Remove mysql-wait-* scripts. They aren't needed when using systemd "Type=notify"
This commit is contained in:
parent
4b238a58a0
commit
04a85451ac
@ -11,8 +11,6 @@
|
|||||||
+ mysql.service
|
+ mysql.service
|
||||||
+ mysql@.service
|
+ mysql@.service
|
||||||
+ mysql-prepare-db-dir
|
+ mysql-prepare-db-dir
|
||||||
+ mysql-wait-ready
|
|
||||||
+ mysql-wait-stop
|
|
||||||
+ mysql-check-socket
|
+ mysql-check-socket
|
||||||
+ mysql-check-upgrade
|
+ mysql-check-upgrade
|
||||||
+ mysql-scripts-common
|
+ mysql-scripts-common
|
||||||
|
15
mariadb.spec
15
mariadb.spec
@ -126,7 +126,7 @@
|
|||||||
|
|
||||||
Name: mariadb
|
Name: mariadb
|
||||||
Version: %{compatver}.%{bugfixver}
|
Version: %{compatver}.%{bugfixver}
|
||||||
Release: 1%{?with_debug:.debug}%{?dist}
|
Release: 2%{?with_debug:.debug}%{?dist}
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
|
|
||||||
Summary: A community developed branch of MySQL
|
Summary: A community developed branch of MySQL
|
||||||
@ -144,11 +144,9 @@ Source7: README.mysql-license
|
|||||||
Source10: mysql.tmpfiles.d.in
|
Source10: mysql.tmpfiles.d.in
|
||||||
Source11: mysql.service.in
|
Source11: mysql.service.in
|
||||||
Source12: mysql-prepare-db-dir.sh
|
Source12: mysql-prepare-db-dir.sh
|
||||||
Source13: mysql-wait-ready.sh
|
|
||||||
Source14: mysql-check-socket.sh
|
Source14: mysql-check-socket.sh
|
||||||
Source15: mysql-scripts-common.sh
|
Source15: mysql-scripts-common.sh
|
||||||
Source16: mysql-check-upgrade.sh
|
Source16: mysql-check-upgrade.sh
|
||||||
Source17: mysql-wait-stop.sh
|
|
||||||
Source18: mysql@.service.in
|
Source18: mysql@.service.in
|
||||||
Source19: mysql.init.in
|
Source19: mysql.init.in
|
||||||
Source50: rh-skipped-tests-base.list
|
Source50: rh-skipped-tests-base.list
|
||||||
@ -644,8 +642,8 @@ cat %{SOURCE51} | tee -a mysql-test/unstable-tests
|
|||||||
cat %{SOURCE51} | tee -a mysql-test/unstable-tests
|
cat %{SOURCE51} | tee -a mysql-test/unstable-tests
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \
|
cp %{SOURCE2} %{SOURCE3} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
|
||||||
%{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} \
|
%{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE18} %{SOURCE19} \
|
||||||
%{SOURCE70} scripts
|
%{SOURCE70} scripts
|
||||||
|
|
||||||
%if %{with galera}
|
%if %{with galera}
|
||||||
@ -838,8 +836,6 @@ install -D -p -m 755 scripts/mysql.init %{buildroot}%{daemondir}/%{daemon_name}
|
|||||||
|
|
||||||
# helper scripts for service starting
|
# helper scripts for service starting
|
||||||
install -p -m 755 scripts/mysql-prepare-db-dir %{buildroot}%{_libexecdir}/mysql-prepare-db-dir
|
install -p -m 755 scripts/mysql-prepare-db-dir %{buildroot}%{_libexecdir}/mysql-prepare-db-dir
|
||||||
install -p -m 755 scripts/mysql-wait-ready %{buildroot}%{_libexecdir}/mysql-wait-ready
|
|
||||||
install -p -m 755 scripts/mysql-wait-stop %{buildroot}%{_libexecdir}/mysql-wait-stop
|
|
||||||
install -p -m 755 scripts/mysql-check-socket %{buildroot}%{_libexecdir}/mysql-check-socket
|
install -p -m 755 scripts/mysql-check-socket %{buildroot}%{_libexecdir}/mysql-check-socket
|
||||||
install -p -m 755 scripts/mysql-check-upgrade %{buildroot}%{_libexecdir}/mysql-check-upgrade
|
install -p -m 755 scripts/mysql-check-upgrade %{buildroot}%{_libexecdir}/mysql-check-upgrade
|
||||||
install -p -m 644 scripts/mysql-scripts-common %{buildroot}%{_libexecdir}/mysql-scripts-common
|
install -p -m 644 scripts/mysql-scripts-common %{buildroot}%{_libexecdir}/mysql-scripts-common
|
||||||
@ -1337,8 +1333,6 @@ fi
|
|||||||
|
|
||||||
%{daemondir}/%{daemon_name}*
|
%{daemondir}/%{daemon_name}*
|
||||||
%{_libexecdir}/mysql-prepare-db-dir
|
%{_libexecdir}/mysql-prepare-db-dir
|
||||||
%{_libexecdir}/mysql-wait-ready
|
|
||||||
%{_libexecdir}/mysql-wait-stop
|
|
||||||
%{_libexecdir}/mysql-check-socket
|
%{_libexecdir}/mysql-check-socket
|
||||||
%{_libexecdir}/mysql-check-upgrade
|
%{_libexecdir}/mysql-check-upgrade
|
||||||
%{_libexecdir}/mysql-scripts-common
|
%{_libexecdir}/mysql-scripts-common
|
||||||
@ -1433,6 +1427,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jul 13 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.7-2
|
||||||
|
- Remove mysql-wait-* scripts. They aren't needed when using systemd "Type=notify"
|
||||||
|
|
||||||
* Thu Jul 13 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.7-1
|
* Thu Jul 13 2017 Michal Schorm <mschorm@redhat.com> - 3:10.2.7-1
|
||||||
- Rebase to 10.2.7
|
- Rebase to 10.2.7
|
||||||
- Get back mysql_config, its "--libmysqld-libs" is still needed
|
- Get back mysql_config, its "--libmysqld-libs" is still needed
|
||||||
|
@ -64,12 +64,10 @@ start(){
|
|||||||
if [ $MYSQLDRUNNING = 1 ] && [ $? = 0 ]; then
|
if [ $MYSQLDRUNNING = 1 ] && [ $? = 0 ]; then
|
||||||
# already running, do nothing
|
# already running, do nothing
|
||||||
action $"Starting $prog: " /bin/true
|
action $"Starting $prog: " /bin/true
|
||||||
ret=0
|
|
||||||
elif [ $MYSQLDRUNNING = 1 ] && echo "$RESPONSE" | grep -q "Access denied for user"
|
elif [ $MYSQLDRUNNING = 1 ] && echo "$RESPONSE" | grep -q "Access denied for user"
|
||||||
then
|
then
|
||||||
# already running, do nothing
|
# already running, do nothing
|
||||||
action $"Starting $prog: " /bin/true
|
action $"Starting $prog: " /bin/true
|
||||||
ret=0
|
|
||||||
else
|
else
|
||||||
@libexecdir@/mysql-prepare-db-dir $MYUSER $MYGROUP || return 4
|
@libexecdir@/mysql-prepare-db-dir $MYUSER $MYGROUP || return 4
|
||||||
@libexecdir@/mysql-check-socket || return 1
|
@libexecdir@/mysql-check-socket || return 1
|
||||||
@ -86,19 +84,11 @@ start(){
|
|||||||
--basedir=@prefix@ --user=$MYUSER >/dev/null 2>&1 &
|
--basedir=@prefix@ --user=$MYUSER >/dev/null 2>&1 &
|
||||||
safe_pid=$!
|
safe_pid=$!
|
||||||
|
|
||||||
# Wait until the daemon is up
|
action $"Starting $prog: " /bin/true
|
||||||
@libexecdir@/mysql-wait-ready "$safe_pid"
|
chmod o+r $pidfile >/dev/null 2>&1
|
||||||
ret=$?
|
touch $lockfile
|
||||||
|
|
||||||
if [ $ret -eq 0 ]; then
|
|
||||||
action $"Starting $prog: " /bin/true
|
|
||||||
chmod o+r $pidfile >/dev/null 2>&1
|
|
||||||
touch $lockfile
|
|
||||||
else
|
|
||||||
action $"Starting $prog: " /bin/false
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
return $ret
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
stop(){
|
stop(){
|
||||||
|
@ -41,7 +41,6 @@ ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n
|
|||||||
# per bug #547485
|
# per bug #547485
|
||||||
ExecStart=@libexecdir@/mysqld --basedir=@prefix@ $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
ExecStart=@libexecdir@/mysqld --basedir=@prefix@ $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
||||||
ExecStartPost=@libexecdir@/mysql-check-upgrade
|
ExecStartPost=@libexecdir@/mysql-check-upgrade
|
||||||
ExecStopPost=@libexecdir@/mysql-wait-stop
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
# Setting this to true can break replication and the Type=notify settings
|
||||||
# See also bind-address mysqld option.
|
# See also bind-address mysqld option.
|
||||||
|
@ -47,7 +47,6 @@ ExecStartPre=@libexecdir@/mysql-prepare-db-dir %n
|
|||||||
# per bug #547485
|
# per bug #547485
|
||||||
ExecStart=@libexecdir@/mysqld --defaults-group-suffix=.%I --basedir=@prefix@ $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
ExecStart=@libexecdir@/mysqld --defaults-group-suffix=.%I --basedir=@prefix@ $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
|
||||||
ExecStartPost=@libexecdir@/mysql-check-upgrade
|
ExecStartPost=@libexecdir@/mysql-check-upgrade
|
||||||
ExecStopPost=@libexecdir@/mysql-wait-stop
|
|
||||||
|
|
||||||
# Setting this to true can break replication and the Type=notify settings
|
# Setting this to true can break replication and the Type=notify settings
|
||||||
# See also bind-address mysqld option.
|
# See also bind-address mysqld option.
|
||||||
|
Loading…
Reference in New Issue
Block a user