Bug 63792

Summary: /etc/init.d/ipchains stop should rmmod ipchains
Product: [Retired] Red Hat Linux Reporter: Need Real Name <jackal>
Component: ipchainsAssignee: Mike A. Harris <mharris>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: kenneth_porter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-05-08 23:41:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Need Real Name 2002-04-18 19:35:57 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; Linux 2.4.9-31 i686)

Description of problem:
When you do a /etc/init.d/ipchiains stop it leaves the ipchains module still
running.  So if you stop ipchains and try to start iptables, iptables will not
start because iptables rc script does an lsmod and exits if it sees the ipchains
modules still running.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. /etc/init.d/ipchains stop
2.  lsmod | grep ipchains
3.
	

Actual Results:  ipchains was still running.

Expected Results:  ipchains should not have shown up in a lsmod.

Additional info:

Try running /etc/init.d/iptables start after
/etc/init.d/ipchains stop and you will see
that iptables will not start up will the ipchains modules is still loaded.

Comment 1 Mike A. Harris 2002-04-19 09:30:08 UTC
Sounds reasonable.  The iptables script should probably do the same
with iptables modules.

Comment 2 kenneth_porter 2002-05-08 23:41:29 UTC
Will rmmod remove dependent modules?

I'm thinking of the connection-tracking suite. It 
would also be nice if there were an /etc/sysconfig file to control which tracking modules were 
loaded.

Comment 3 Mike A. Harris 2002-05-22 10:07:16 UTC
I've added an rmmod to the ipchains script at the end of the "stop"
section.  It's currently untested so I don't know how well it works,
but that should turn up in beta testing.

If anyone would like it done in iptables' initscript also, file a separate
request against iptables.

ipchains 1.3.10-14

Comment 4 kenneth_porter 2002-05-23 01:44:13 UTC
FYI, iptables bug has been entered as bug 65389.

Comment 5 James Manning 2002-05-23 16:47:50 UTC
probably better done as modprobe -r instead of rmmod in case there's a set of
dependent modules that would also be best removed later on