Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37515890
en ru br
ALT Linux repositórios
S:5.2.8-alt1
5.0: 3.4.8-alt1
4.0: 3.4.5-alt1

Group :: Segurança/Rede
RPM: shorewall

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

#!/bin/sh
#
# shorewall Shoreline Firewall is a high-level tool for configuring Netfilter.
#
# chkconfig: 2345 24 76
#
# config: /etc/shorewall/shorewall.conf
# description: Shoreline Firewall is a high-level tool for configuring Netfilter.

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

# Source networking configuration.
SourceIfNotEmpty /etc/sysconfig/network

EXEC=/sbin/shorewall
LOCKFILE=/var/lock/subsys/shorewall
RETVAL=0


start() {
is_yes "$NETWORKING" || return 0
action $"Applying Shorewall firewall rules:" "$EXEC" -f start
RETVAL=$?
[ $RETVAL -eq 0 ] && touch "$LOCKFILE"
return $RETVAL
}

stop() {
action $"Applying Shorewall firewall rules:" "$EXEC" stop
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f "$LOCKFILE"
return $RETVAL
}

restart() {
action $"Restarting Shorewall firewall rules: " "$EXEC" restart
RETVAL=$?
return $RETVAL
}

clear() {
action $"Clearing Shorewall firewall rules: " "$EXEC" clear
RETVAL=$?
return $RETVAL
}

RETVAL=0

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
restart
;;
clear)
clear
;;
condrestart)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condreload)
if [ -e "$LOCKFILE" ]; then
restart
fi
;;
condstop)
if [ -e "$LOCKFILE" ]; then
stop
fi
;;
status)
"$EXEC" status
RETVAL=$?
;;
*)
echo $"Usage: ${0##*/} {start|stop|restart|reload|clear|condrestart|condstop|status}"
RETVAL=1
esac

exit $RETVAL
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009