- Redirect stdout to /dev/null

git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@167 a942ae1a-1317-0410-a47c-b1dcaea8d605
0.5
Cyril Jaquier 20 years ago
parent e8b4d66c54
commit d0a0088894

@ -31,13 +31,13 @@ depend() {
start() {
ebegin "Starting fail2ban"
${FAIL2BAN} -b ${FAIL2BAN_OPTS}
${FAIL2BAN} -b ${FAIL2BAN_OPTS} > /dev/null
eend $? "Failed to start fail2ban"
}
stop() {
ebegin "Stopping fail2ban"
${FAIL2BAN} -k
${FAIL2BAN} -k > /dev/null
eend $? "Failed to stop fail2ban"
}

@ -28,7 +28,7 @@ RETVAL=0
start() {
echo -n $"Starting fail2ban: "
"${FAIL2BAN}" -b
"${FAIL2BAN}" -b > /dev/null
RETVAL=$?
echo
}
@ -36,7 +36,7 @@ start() {
stop() {
if [ -f "${PIDFILE}" ]; then
echo -n $"Stopping fail2ban: "
"${FAIL2BAN}" -k
"${FAIL2BAN}" -k > /dev/null
echo
fi
}

Loading…
Cancel
Save