Check permissions when starting service on RHEL-6

Resolves: #1194699
This commit is contained in:
Honza Horak 2015-03-06 16:02:11 +01:00 committed by Michal Schorm
parent 4e1363278b
commit e7792a52dc
2 changed files with 9 additions and 0 deletions

View File

@ -945,6 +945,8 @@ fi
* Tue Mar 03 2015 Honza Horak <hhorak@redhat.com> - 5.6.23-4 * Tue Mar 03 2015 Honza Horak <hhorak@redhat.com> - 5.6.23-4
- Do not use scl prefix more than once in paths - Do not use scl prefix more than once in paths
Based on https://www.redhat.com/archives/sclorg/2015-February/msg00038.html Based on https://www.redhat.com/archives/sclorg/2015-February/msg00038.html
- Check permissions when starting service on RHEL-6
Resolves: #1194699
* Mon Feb 23 2015 Honza Horak <hhorak@redhat.com> - 5.6.23-3 * Mon Feb 23 2015 Honza Horak <hhorak@redhat.com> - 5.6.23-3
- Expand paths in perl scripts in mysql-test - Expand paths in perl scripts in mysql-test

View File

@ -45,6 +45,13 @@ source "@libexecdir@/mysql-scripts-common"
start(){ start(){
[ -x $exec ] || exit 5 [ -x $exec ] || exit 5
# check permissions
if ! touch $(dirname $socketfile) &>/dev/null ; then
action $"Starting $prog: " /bin/false
return 4
fi
# check to see if it's already running # check to see if it's already running
MYSQLDRUNNING=0 MYSQLDRUNNING=0
if [ -f "$pidfile" ]; then if [ -f "$pidfile" ]; then