Signed-off-by: Adam Spiers <aspiers@suse.com>
RETVAL=0
start() {
- $BIN -c -q -f $CFG
+ quiet_check
if [ $? -ne 0 ]; then
echo "Errors found in configuration file, check it with '$BASENAME check'."
return 1
}
restart() {
- $BIN -c -q -f $CFG
+ quiet_check
if [ $? -ne 0 ]; then
echo "Errors found in configuration file, check it with '$BASENAME check'."
return 1
}
reload() {
- $BIN -c -q -f $CFG
+ quiet_check
if [ $? -ne 0 ]; then
echo "Errors found in configuration file, check it with '$BASENAME check'."
return 1
$BIN -c -q -V -f $CFG
}
+quiet_check()
+ $BIN -c -q -f $CFG
+}
+
rhstatus() {
status $BASENAME
}