Check permissions when starting service on RHEL-6
Resolves: #1194699 Conflicts: mariadb.spec
This commit is contained in:
parent
a02a49cae7
commit
46165ca650
@ -1127,6 +1127,10 @@ fi
|
||||
%endif
|
||||
|
||||
%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
|
||||
- Enable tokudb
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user