Bug 10936

Summary: Suggestion: 'ifup-pre' and 'ifdown-pre'
Product: [Retired] Red Hat Linux Reporter: mop45352
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: michael_e_brown, rvokal
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-12 20:18:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mop45352 2000-04-20 07:21:57 UTC
I would like to suggest creating hooks for "pre" analogues of the currently
existing 'ifdown-post' and 'ifup-post' scripts, and then for the
'ifup-local' and 'ifdown-local' scripts one can plug in.  I am a dialup
user, and use the dhs.org static hostname -> mutable IP address mapping
service because Kerberos (used on MIT/Athena) requires it.  Kerberos does
an "idiot-check" of the host identification by a
"gethostbyaddr(gethostbyname(host))" call.

I have my system do some acrobatics on both device up and down, but also
need hooks before the device state is changed in either direction.  For
example, before I shutdown my external networking, I must currently run a
script manually to disable my DNS entry at dhs.org.  This is not a problem
on startup, as I can just include that action in 'ifup-local' but
'ifdown-local' is executed after the device is disabled.

I could hack my scripts to rectify the problem, but it is certainly
non-standard and I cannot share my solution with others who have rapidly
changing network configuration without rolling my own 'initscripts' package
-- this is uncomfortable, give how critical this component is!

If you wish, I can implement the hack and submit a patch, but it would
require a change in the naming convention of the local plugin scripts.

Thank you.

Regards,

Sourav Mandal

Comment 1 Bill Nottingham 2000-12-12 07:35:13 UTC
There is an ifup-pre-local in Red Hat Linux 7.0.


Comment 2 Michael E Brown 2001-03-12 20:18:34 UTC
In this bugreport, the resolution was that 'ifup-pre' was added in 7.0. I would
like to request that 'ifdown-pre-local' be added. I have some network
de-registration to do before the interface is taken down, and I currently have
to hack the initscripts to do this.

Comment 3 Bill Nottingham 2001-03-12 20:22:50 UTC
Sure, will be in 5.76-1.