Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 282071 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 init.d script
ipset.initd (text/plain), 1.10 KB, created by
Andrew Savchenko
on 2011-08-04 16:19:52 UTC
(
hide
)
Description:
ipset init.d script
Filename:
MIME Type:
Creator:
Andrew Savchenko
Created:
2011-08-04 16:19:52 UTC
Size:
1.10 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >opts="save" > >ipset_bin="/usr/sbin/ipset" > >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_bin} restore < "${IPSET_SAVE}" > eend $? >} > >stop() { > service_started iptables && { > eerror "Can't stop while iptables is running" > return 1 > } > service_started ip6tables && { > eerror "Can't stop while ip6tables is running" > return 1 > } > if [[ "${SAVE_ON_STOP}" = "yes" ]] ; then > save || return 1 > fi > ebegin "Removing kernel IP sets" > ${ipset_bin} destroy > eend $? >} > >save() { > ebegin "Saving ipset session" > touch "${IPSET_SAVE}" > chmod 0600 "${IPSET_SAVE}" > ${ipset_bin} 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