Check permissions when starting service on RHEL-6

Resolves: #1194699

Conflicts:
	mariadb.spec
This commit is contained in:
Honza Horak 2015-03-03 22:59:12 +01:00
parent a02a49cae7
commit 46165ca650
2 changed files with 11 additions and 0 deletions

View File

@ -1127,6 +1127,10 @@ fi
%endif %endif
%changelog %changelog
* Tue Mar 03 2015 Honza Horak <hhorak@redhat.com> - 1:10.0.16-6
- Check permissions when starting service on RHEL-6
Resolves: #1194699
* Fri Feb 13 2015 Matej Muzila <mmuzila@redhat.com> - 1:10.0.16-4 * Fri Feb 13 2015 Matej Muzila <mmuzila@redhat.com> - 1:10.0.16-4
- Enable tokudb - Enable tokudb

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