Ticket #123 (closed defect: fixed)
Opened 22 months ago
Last modified 22 months ago
postdown if interface_exists does not work in /etc/conf.d/net
Reported by: | chuck@forestoflives.com | Owned by: | roy |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | rc | Version: | 0.2 |
Keywords: | Cc: |
Description
I have installed openrc 0.3.0-r1 in a server and when I shut an ethernet interface down I get an error. The interface does shut down, but the error concerns me that something may be missed and the shutdown may not be complete or proper. It is:
- Running postdown .../etc/init.d/../conf.dnet: line 49: interface_exists: command not found
Is there a set of recommended alternatives to postup/postdown? See my discussion here for full information and a copy of my net file:
Change History
comment:1 follow-up: ↓ 2 Changed 22 months ago by roy
- Status changed from new to closed
- Resolution set to wontfix
comment:2 in reply to: ↑ 1 Changed 22 months ago by Chuck Gorish <chuck@forestoflives.com>
Replying to roy:
You should change
interface_exists "${IFACE}"
to
_exists
in your conf.d/net
Thanks! it works perfectly! I was told by someone else not to use it because the leading _ indicated for internal use only. But you say to use it so I will.
comment:3 Changed 22 months ago by roy
- Status changed from closed to reopened
- Resolution wontfix deleted
We should provide shims for interface_exists, interface_up and interface_down as I would imagine more people may use them
comment:4 Changed 22 months ago by roy
- Status changed from reopened to closed
- Resolution set to fixed
You should change
interface_exists "${IFACE}"
to
_exists
in your conf.d/net