Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 149373 Details for
Bug 181045
net-firewall/ipset needs an init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/ipset
ipset.sh (text/plain), 959 bytes, created by
Caleb Cushing
on 2008-04-11 09:01:14 UTC
(
hide
)
Description:
/etc/init.d/ipset
Filename:
MIME Type:
Creator:
Caleb Cushing
Created:
2008-04-11 09:01:14 UTC
Size:
959 bytes
patch
obsolete
>#!/sbin/runscript ># Distributed under the terms of the GNU General Public License v2 > >opts="save" > >ipset_name=${SVCNAME} >ipset_save=${IPSET_SAVE} > >if [ "${ipset_name}" != "ipset" ] ; then > ipset_name="ipset" >fi > >ipset_bin="/sbin/${ipset_name}" > >depend() { > before net > before iptables >} > >checkconfig() { > if [ ! -f ${ipset_save} ] ; then > eerror "Not starting ${ipset_name}. First create some rules then run:" > eerror "/etc/init.d/${ipset_name} save" > return 1 > fi > return 0 >} > >start() { > checkconfig || return 1 > ebegin "Loading ${ipset_name} state" > ${ipset_bin} --restore ${SAVE_RESTORE_OPTIONS} < "${ipset_save}" > eend $? >} > >stop() { > if [ "${SAVE_ON_STOP}" = "yes" ] ; then > save || return 1 > fi > ebegin "Stopping sets" > ${ipset_bin} --flush > ${ipset_bin} --destroy > eend $? >} > >save() { > ebegin "Saving ${ipset_name} state" > touch "${ipset_save}" > chmod 0600 "${ipset_save}" > ${ipset_bin} --save ${SAVE_RESTORE_OPTIONS} > "${ipset_save}" > 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 181045
: 149373 |
149374
|
282071
|
282073
|
282075
|
282307
|
282459
|
282463