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
b58e9c9c
Commit
b58e9c9c
authored
May 25, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-295 Do NOT start mysql when installing MariaDB rpms
but restart it on upgrade, if it was already running
parent
4e1c0b4d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
23 deletions
+15
-23
support-files/rpm/server-postin.sh
support-files/rpm/server-postin.sh
+4
-12
support-files/rpm/server-postun.sh
support-files/rpm/server-postun.sh
+7
-0
support-files/rpm/server-prein.sh
support-files/rpm/server-prein.sh
+0
-7
support-files/rpm/server-preun.sh
support-files/rpm/server-preun.sh
+4
-4
No files found.
support-files/rpm/server-postin.sh
View file @
b58e9c9c
...
...
@@ -4,8 +4,10 @@ mysql_datadir=%{mysqldatadir}
mkdir
-p
$mysql_datadir
/
{
mysql,test
}
# Make MySQL start/shutdown automatically when the machine does it.
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--add
mysql
if
[
$1
=
1
]
;
then
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--add
mysql
fi
fi
# Create a MySQL user and group. Do not report any problems if it already
...
...
@@ -65,13 +67,3 @@ if [ -x sbin/restorecon ] ; then
sbin/restorecon
-R
var/lib/mysql
fi
# Restart in the same way that mysqld will be started normally.
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
%
{
_sysconfdir
}
/init.d/mysql start
echo
"Giving mysqld 2 seconds to start"
sleep
2
fi
# Allow safe_mysqld to start mysqld and print a message before we exit
sleep
2
support-files/rpm/server-postun.sh
0 → 100644
View file @
b58e9c9c
if
[
$1
-ge
1
]
;
then
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
# only restart the server if it was alredy running
%
{
_sysconfdir
}
/init.d/mysql status
>
/dev/null 2>&1
&&
\
%
{
_sysconfdir
}
/init.d/mysql restart
fi
fi
support-files/rpm/server-prein.sh
View file @
b58e9c9c
...
...
@@ -64,10 +64,3 @@ HERE
fi
fi
# Shut down a previously installed server first
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
%
{
_sysconfdir
}
/init.d/mysql stop
>
/dev/null 2>&1
echo
"Giving mysqld 5 seconds to exit nicely"
sleep
5
fi
support-files/rpm/server-preun.sh
View file @
b58e9c9c
...
...
@@ -2,10 +2,10 @@ if [ $1 = 0 ] ; then
# Stop MySQL before uninstalling it
if
[
-x
%
{
_sysconfdir
}
/init.d/mysql
]
;
then
%
{
_sysconfdir
}
/init.d/mysql stop
>
/dev/null
# Don't start it automatically anymore
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
fi
fi
# Don't start it automatically anymore
if
[
-x
/sbin/chkconfig
]
;
then
/sbin/chkconfig
--del
mysql
fi
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