https://bugzilla.novell.com/show_bug.cgi?id=717583
https://bugzilla.novell.com/show_bug.cgi?id=717583#c3
Frederic Crozat changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
InfoProvider|fcrozat@suse.com |
--- Comment #3 from Frederic Crozat 2011-09-19 09:42:23 UTC ---
There is a way, I've justed tested.
--- /etc/init.d/SuSEfirewall2_setup 2011-04-08 23:31:19.000000000 +0200
+++ /home/fcrozat/SuSEfirewall2_setup 2011-09-19 11:41:14.120301321 +0200
@@ -41,9 +41,12 @@
# called due to shutdown of the machine. So we can't
# unload rules here. Call /sbin/SuSEfirewall2
# directly instead to unload rules.
- echo -n "Not unloading firewall rules when using systemd "
- rc_status -s
- elif [ -z "$REDIRECT" ]; then
+ 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"
$SUSEFWALL -q stop
rc_status -v
This is not very pretty but it works ;)
Of course, for 12.2, we will probably switch to systemd unit files which could
help in this regard.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.