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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
63df5f7c
Commit
63df5f7c
authored
Jun 12, 2003
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- applied patch for mysqld_safe from Christian Hammers to be able to
define a different niceness level in my.cnf (Bug #627)
parent
e38221a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
scripts/mysqld_safe.sh
scripts/mysqld_safe.sh
+12
-3
No files found.
scripts/mysqld_safe.sh
View file @
63df5f7c
...
@@ -70,6 +70,7 @@ parse_arguments() {
...
@@ -70,6 +70,7 @@ parse_arguments() {
MYSQLD
=
"mysqld"
MYSQLD
=
"mysqld"
fi
fi
;;
;;
--nice
=
*
)
niceness
=
`
echo
"
$arg
"
|
sed
-e
"s;--nice=;;"
`
;;
*
)
*
)
if
test
-n
"
$pick_args
"
if
test
-n
"
$pick_args
"
then
then
...
@@ -110,6 +111,7 @@ fi
...
@@ -110,6 +111,7 @@ fi
MYSQL_UNIX_PORT
=
${
MYSQL_UNIX_PORT
:-
@MYSQL_UNIX_ADDR@
}
MYSQL_UNIX_PORT
=
${
MYSQL_UNIX_PORT
:-
@MYSQL_UNIX_ADDR@
}
MYSQL_TCP_PORT
=
${
MYSQL_TCP_PORT
:-
@MYSQL_TCP_PORT@
}
MYSQL_TCP_PORT
=
${
MYSQL_TCP_PORT
:-
@MYSQL_TCP_PORT@
}
user
=
@MYSQLD_USER@
user
=
@MYSQLD_USER@
niceness
=
0
# Use the mysqld-max binary by default if the user doesn't specify a binary
# Use the mysqld-max binary by default if the user doesn't specify a binary
if
test
-x
$ledir
/mysqld-max
if
test
-x
$ledir
/mysqld-max
...
@@ -167,7 +169,12 @@ export MYSQL_UNIX_PORT
...
@@ -167,7 +169,12 @@ export MYSQL_UNIX_PORT
export
MYSQL_TCP_PORT
export
MYSQL_TCP_PORT
NOHUP_NICENESS
=
"nohup"
if
test
$niceness
-eq
0
then
NOHUP_NICENESS
=
"nohup"
else
NOHUP_NICENESS
=
"nohup nice -
$niceness
"
fi
# Using nice with no args to get the niceness level is GNU-specific.
# Using nice with no args to get the niceness level is GNU-specific.
# This check could be extended for other operating systems (e.g.,
# This check could be extended for other operating systems (e.g.,
...
@@ -198,8 +205,10 @@ then
...
@@ -198,8 +205,10 @@ then
nice
--
$nice_value_diff
echo
testing
>
/dev/null 2>&1
nice
--
$nice_value_diff
echo
testing
>
/dev/null 2>&1
then
then
# nohup increases the priority (bad), and we are permitted
# nohup increases the priority (bad), and we are permitted
# to lower the priority
# to lower the priority with respect to the value the user
NOHUP_NICENESS
=
"nice --
$nice_value_diff
nohup"
# might have been given
niceness
=
`
expr
$niceness
-
$nice_value_diff
`
NOHUP_NICENESS
=
"nice -
$niceness
nohup"
fi
fi
fi
fi
else
else
...
...
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