Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 282459 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]
ipset.initd
ipset.initd (text/plain), 1.03 KB, created by
Andrew Savchenko
on 2011-08-07 17:51:13 UTC
(
hide
)
Description:
ipset.initd
Filename:
MIME Type:
Creator:
Andrew Savchenko
Created:
2011-08-07 17:51:13 UTC
Size:
1.03 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >opts="save" > >depend() >{ > before iptables ip6tables > use logger >} > >checkconfig() >{ > if [ ! -f "${IPSET_SAVE}" ] ; then > eerror "Not starting ${SVCNAME}. First create some rules then run:" > eerror "/etc/init.d/${SVCNAME} save" > return 1 > fi > return 0 >} > >start() >{ > checkconfig || return 1 > ebegin "Loading ipset session" > ipset restore < "${IPSET_SAVE}" > eend $? >} > >stop() >{ > # check if there are any references to current sets > if ipset list | gawk '($1 == "References:" && $2 > 0) { exit 1 }'; then > eerror "ipset is in use, can't stop" > return 1 > fi > > if [ "${SAVE_ON_STOP}" = "yes" ] ; then > save || return 1 > fi > ebegin "Removing kernel IP sets" > ipset destroy > eend $? >} > >save() >{ > ebegin "Saving ipset session" > touch "${IPSET_SAVE}" > chmod 0600 "${IPSET_SAVE}" > ipset save > "${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