* [gentoo-commits] gentoo-x86 commit in net-firewall/sanewall/files: sanewall.confd sanewall.initd
@ 2013-06-15 11:07 Tim Harder (radhermit)
0 siblings, 0 replies; only message in thread
From: Tim Harder (radhermit) @ 2013-06-15 11:07 UTC (permalink / raw
To: gentoo-commits
radhermit 13/06/15 11:07:43
Added: sanewall.confd sanewall.initd
Log:
Initial import.
(Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
Revision Changes Path
1.1 net-firewall/sanewall/files/sanewall.confd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/sanewall/files/sanewall.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/sanewall/files/sanewall.confd?rev=1.1&content-type=text/plain
Index: sanewall.confd
===================================================================
# location of sanewall config
SANEWALL_CONFIG="/etc/sanewall/sanewall.conf"
1.1 net-firewall/sanewall/files/sanewall.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/sanewall/files/sanewall.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/sanewall/files/sanewall.initd?rev=1.1&content-type=text/plain
Index: sanewall.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/sanewall/files/sanewall.initd,v 1.1 2013/06/15 11:07:43 radhermit Exp $
extra_commands="save panic try"
extra_started_commands="reload"
depend() {
need localmount
after bootmisc
before net
provide firewall
}
start_pre() {
if [ ! -f ${SANEWALL_CONFIG} ]; then
eerror "Not starting sanewall, missing config file ${SANEWALL_CONFIG}."
return 1
fi
}
start() {
ebegin "Starting sanewall"
/usr/sbin/sanewall ${SANEWALL_CONFIG} start >/dev/null
eend $?
}
stop() {
ebegin "Stopping sanewall"
/usr/sbin/sanewall stop >/dev/null
eend $?
}
try() {
ebegin "Trying sanewall configuration"
/usr/sbin/sanewall ${SANEWALL_CONFIG} try
eend $?
}
status() {
ebegin "Showing sanewall status"
/usr/sbin/sanewall status
eend $?
}
panic() {
ebegin "sanewall panic"
/usr/sbin/sanewall panic
eend $?
}
save() {
ebegin "Saving sanewall configuration"
/usr/sbin/sanewall save
eend $?
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-15 11:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 11:07 [gentoo-commits] gentoo-x86 commit in net-firewall/sanewall/files: sanewall.confd sanewall.initd Tim Harder (radhermit)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox