Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
4834bd06
Commit
4834bd06
authored
May 20, 2014
by
Mike Hibler
Browse files
Use full path to mysqlcheck command.
parent
60880dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
rc.d/2.tbdbcheck.sh.in
View file @
4834bd06
...
...
@@ -13,20 +13,22 @@ PROTOGENI="@PROTOGENI_SUPPORT@"
DBNAME
=
"@TBDBNAME@"
LOGFILE
=
"/var/log/mysqlcheck.log"
command
=
/usr/local/bin/mysqlcheck
case
"
$1
"
in
start|faststart|quietstart|onestart|forcestart
)
rm
-f
$LOGFILE
if
[
$MAINSITE
==
"0"
]
;
then
echo
"*** Checking
$DBNAME
..."
>>
$LOGFILE
mysqlcheck
--auto-repair
$DBNAME
>>
$LOGFILE
$command
--auto-repair
$DBNAME
>>
$LOGFILE
fi
if
[
$PROTOGENI
!=
"0"
]
;
then
echo
"*** Checking geni ..."
>>
$LOGFILE
mysqlcheck
--auto-repair
geni
>>
$LOGFILE
$command
--auto-repair
geni
>>
$LOGFILE
echo
"*** Checking geni-ch ..."
>>
$LOGFILE
mysqlcheck
--auto-repair
geni-ch
>>
$LOGFILE
$command
--auto-repair
geni-ch
>>
$LOGFILE
echo
"*** Checking geni-cm ..."
>>
$LOGFILE
mysqlcheck
--auto-repair
geni-cm
>>
$LOGFILE
$command
--auto-repair
geni-cm
>>
$LOGFILE
fi
;;
stop|faststop|quietstop|onestop|forcestop
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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