Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 286891 Details for
Bug 383493
sys-apps/openrc-0.9.3-r1, net-firewall/ipset, net-firewall/iptables: Circular Dependency with custom init script for net-firewall/ipset
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ipset initscript
ipset (text/plain), 1.07 KB, created by
Allen Parker
on 2011-09-18 13:47:22 UTC
(
hide
)
Description:
ipset initscript
Filename:
MIME Type:
Creator:
Allen Parker
Created:
2011-09-18 13:47:22 UTC
Size:
1.07 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >extra_commands="save reload panic" > >ipset_bin="/usr/sbin/ipset" > >depend() { > use logger >} > >checkconfig() { > if [ ! -f ${ipset_save} ] ; then > eerror "Not starting ipset. First create some rules then run:" > eerror "/etc/init.d/ipset save" > return 1 > fi > return 0 >} > >destroy() { > ${ipset_bin} flush > local a > for a in $(awk /^create/{'print $2'} "${ipset_save}"); do > einfo destroying ${a} > ${ipset_bin} destroy ${a} > done >} > >start() { > checkconfig || return 1 > ebegin "Loading ipset state" > ${ipset_bin} restore < "${ipset_save}" > eend $? >} > >stop() { > if [ "${SAVE_ON_STOP}" = "yes" ] ; then > save || return 1 > fi > ebegin "Stopping firewall" > destroy > eend $? >} > >reload() { > ebegin "Flushing firewall" > destroy > eend $? > > start >} > >save() { > ebegin "Saving ipset state" > touch "${ipset_save}" > chmod 0600 "${ipset_save}" > ${ipset_bin} save > "${ipset_save}" > eend $? >} > >panic() { > if service_started ipset; then > rc-service ipset stop > fi > destroy > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 383493
: 286891 |
286893