Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ab5932f8
Commit
ab5932f8
authored
Nov 28, 2016
by
Balasubramanian Kandasamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#25159791 BASEDIR: COMMAND NOT FOUND ERROR WHILE STARTING SERVER WITH INIT SCRIPTS
parent
251e82c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
packaging/rpm-oel/mysql-systemd-start
packaging/rpm-oel/mysql-systemd-start
+1
-1
packaging/rpm-oel/mysql.init
packaging/rpm-oel/mysql.init
+3
-3
packaging/rpm-sles/mysql.init
packaging/rpm-sles/mysql.init
+1
-1
No files found.
packaging/rpm-oel/mysql-systemd-start
View file @
ab5932f8
...
...
@@ -22,7 +22,7 @@ install_db () {
datadir
=
$(
get_option mysqld datadir
"/var/lib/mysql"
)
# Restore log, dir, perms and SELinux contexts
if
[
!
-d
"
$datadir
"
-a
!
-h
"
$datadir
"
-a
"x
$(
basedir
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
if
[
!
-d
"
$datadir
"
-a
!
-h
"
$datadir
"
-a
"x
$(
dirname
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
install
-d
-m
0755
-omysql
-gmysql
"
$datadir
"
||
exit
1
fi
log
=
/var/log/mysqld.log
...
...
packaging/rpm-oel/mysql.init
View file @
ab5932f8
...
...
@@ -76,10 +76,10 @@ start(){
[
-x
/sbin/restorecon
]
&&
/sbin/restorecon
"
$errlogfile
"
if
[
!
-d
"
$datadir
/mysql"
]
;
then
# First, make sure $datadir is there with correct permissions
if
[
!
-d
"
$datadir
"
-a
!
-h
"
$datadir
"
-a
"x
$(
basedir
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
if
[
!
-d
"
$datadir
"
-a
!
-h
"
$datadir
"
-a
"x
$(
dirname
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
install
-d
-m0755
-omysql
-gmysql
"
$datadir
"
||
exit
1
fi
if
[
!
-h
"
$datadir
"
-a
"x
$(
basedir
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
if
[
!
-h
"
$datadir
"
-a
"x
$(
dirname
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
chown
mysql:mysql
"
$datadir
"
chmod
0755
"
$datadir
"
fi
...
...
@@ -99,7 +99,7 @@ start(){
return
$ret
fi
fi
if
[
!
-h
"
$datadir
"
-a
"x
$(
basedir
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
if
[
!
-h
"
$datadir
"
-a
"x
$(
dirname
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
chown
mysql:mysql
"
$datadir
"
chmod
0755
"
$datadir
"
fi
...
...
packaging/rpm-sles/mysql.init
View file @
ab5932f8
...
...
@@ -57,7 +57,7 @@ install_db () {
logfile
=
$(
get_option mysqld_safe log-error
"/var/log/mysql/mysqld.log"
)
# Restore log, dir, perms and SELinux contexts
if
[
!
-d
"
$datadir
"
-a
!
-h
"
$datadir
"
-a
"x
$(
basedir
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
if
[
!
-d
"
$datadir
"
-a
!
-h
"
$datadir
"
-a
"x
$(
dirname
"
$datadir
"
)
"
=
"x/var/lib"
]
;
then
install
-d
-m
0755
-omysql
-gmysql
"
$datadir
"
||
return
1
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment