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
parent 062422d0a1
commit 42a566e9d7
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
- Do not use scl prefix more than once in paths
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
- Expand paths in perl scripts in mysql-test

View File

@ -45,6 +45,13 @@ source "@libexecdir@/mysql-scripts-common"
start(){
[ -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
MYSQLDRUNNING=0
if [ -f "$pidfile" ]; then