Bugzilla – Attachment 454897 Details for
Bug 717583
systemd: rcSuSEfirewall2 does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Forgot Password
initscript
SuSEfirewall2_setup (text/plain), 2.00 KB, created by
Frederic Crozat
on 2011-10-06 14:30:26 UTC
(
hide
)
Description:
initscript
Filename:
MIME Type:
Creator:
Frederic Crozat
Created:
2011-10-06 14:30:26 UTC
Size:
2.00 KB
patch
obsolete
>#! /bin/bash ># Copyright (c) 2000-2002 SuSE GmbH Nuernberg, Germany. ># Copyright (C) 2003,2004 SUSE Linux AG ># Copyright (C) 2005-2008 SUSE LINUX Products GmbH ># ># Author: Marc Heuse ># Maintainer: Ludwig Nussel ># ># /etc/init.d/SuSEfirewall2_setup ># >### BEGIN INIT INFO ># Provides: SuSEfirewall2_setup ># Required-Start: SuSEfirewall2_init $network $remote_fs ># Should-Start: $ALL network-remotefs ypbind nfs nfsserver rpcbind ># Required-Stop: $remote_fs ># Should-Stop: $null ># Default-Start: 3 5 ># Default-Stop: 0 1 2 6 ># Short-Description: SuSEfirewall2 phase 2 ># Description: SuSEfirewall2_setup does some basic setup and is the ># phase 2 of 2 of the SuSEfirewall initialization. >### END INIT INFO ># X-SuSE-Dep-Only > >SUSEFWALL="/sbin/SuSEfirewall2" > >test -x $SUSEFWALL || exit 5 > >. /etc/rc.status >rc_reset > >case "$1" in > start) > echo -n "Loading firewall rules " > $SUSEFWALL -q --bootunlock start > rc_status -v > ;; > stop) > if [ -e /sys/fs/cgroup/systemd ]; then > # when using systemd we don't know whether we are > # called due to shutdown of the machine. So we can't > # unload rules here. Call /sbin/SuSEfirewall2 > # directly instead to unload rules. > systemctl show -p ActiveState shutdown.target | grep -qi inactive > if [ $? != 0 ]; then > unset REDIRECT > fi > fi > if [ -z "$REDIRECT" ]; then > echo -n "Unloading firewall rules" > sleep 10 > $SUSEFWALL -q stop > rc_status -v > else > echo -n "Not unloading firewall rules at system shutdown" > rc_status -s > fi > ;; > restart|force-reload) > $0 start > ;; > try-restart|reload) > if ($0 status) >/dev/null 2>&1; then > $0 start > else > rc_reset > fi > ;; > long-status) > echo "Checking the status of SuSEfirewall2 " > if ! $SUSEFWALL status; then > rc_failed 3 > fi > ;; > status) > echo -n "Checking the status of SuSEfirewall2 " > { test -e /proc/net/ip_tables_names && iptables -nL reject_func >/dev/null 2>&1; } || rc_failed 3 > rc_status -v > ;; > *) > echo "Usage: $0 {start|stop|status|restart|reload|force-reload}" > exit 1 > ;; >esac > ># Set exit status >rc_exit
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 717583
: 454897