- 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() { start() {
ebegin "Starting fail2ban" ebegin "Starting fail2ban"
${FAIL2BAN} -b ${FAIL2BAN_OPTS} ${FAIL2BAN} -b ${FAIL2BAN_OPTS} > /dev/null
eend $? "Failed to start fail2ban" eend $? "Failed to start fail2ban"
} }
stop() { stop() {
ebegin "Stopping fail2ban" ebegin "Stopping fail2ban"
${FAIL2BAN} -k ${FAIL2BAN} -k > /dev/null
eend $? "Failed to stop fail2ban" eend $? "Failed to stop fail2ban"
} }

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

Loading…
Cancel
Save