Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 153603 Details for
Bug 222713
mail-filter/postfwd - Versatile Postfix policy server with a flexible ruleset based configuration
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/postfwd.rc.new: the conf file for the above init script
postfwd.rc.new (text/plain), 2.14 KB, created by
Bernhard Frauendienst
on 2008-05-18 20:14:48 UTC
(
hide
)
Description:
files/postfwd.rc.new: the conf file for the above init script
Filename:
MIME Type:
Creator:
Bernhard Frauendienst
Created:
2008-05-18 20:14:48 UTC
Size:
2.14 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/files/postgrey.rc.new,v 1.8 2008/04/10 17:07:47 dertobi123 Exp $ > >conf="/etc/conf.d/postfwd" > >opts="${opts} reload" > >depend() { > need net > before postfix >} > >conf_error() { > eerror "You need to setup ${conf} first" > return 1 >} > >checkconfig() { >if [ -z "${POSTFWD_TYPE}" ] > then > einfo "You need to choose the server type you want" > einfo "by setting the POSTFWD_TYPE variable in ${conf}." > else > if [ "x${POSTFWD_TYPE}" = "xinet" ] > then > if [ -z "${POSTFWD_PORT}" ] || [ -z "${POSTFWD_HOST}" ] > then > einfo "The following entries are missing in ${conf}:" > [ -z "${POSTFWD_HOST}" ] && einfo " - POSTFWD_HOST" > [ -z "${POSTFWD_PORT}" ] && einfo " - POSTFWD_PORT" > conf_error > fi > POSTFWD_ADDR="--interface ${POSTFWD_HOST} --port ${POSTFWD_PORT}" > else > if [ -z "${POSTFWD_SOCKET}" ] > then > einfo "The following entries are missing in ${conf}:" > [ -z "${POSTFWD_SOCKET}" ] && einfo " - POSTFWD_SOCKET" > conf_error > fi > POSTFWD_ADDR="--port ${POSTFWD_SOCKET}|unix" > fi >fi > > if [ -z "${POSTFWD_PID}" ] > then > einfo "The following entries are missing in ${conf}:" > [ -z "${POSTFWD_PID}" ] && einfo " - POSTFWD_PID" > conf_error > fi >} > >start() { > checkconfig || return 1 > ebegin "Starting Postfwd" > > # HACK -- start a subshell and corrects perms on the socket... > ( if [ "x${POSTFWD_TYPE}" = "xunix" ]; then > rm -f ${POSTFWD_SOCKET}; > while ! test -S ${POSTFWD_SOCKET}; do sleep 1; done; > chmod a+rw,a-x ${POSTFWD_SOCKET}; fi ) & > > start-stop-daemon --start --quiet --background \ > --pidfile=${POSTFWD_PID} \ > --exec /usr/lib/postfix/postfwd -- \ > --user=${POSTFWD_USER} \ > --group=${POSTFWD_GROUP} \ > --daemon \ > --pidfile=${POSTFWD_PID} \ > --file=/etc/postfix/postfwd.cf \ > ${POSTFWD_ADDR} \ > ${POSTFWD_OPTS} > eend ${?} >} > >stop() { > ebegin "Stopping Postfwd" > start-stop-daemon --stop --quiet --pidfile ${POSTFWD_PID} > eend ${?} >} > >reload() { > ebegin "Reloading Postfwd" > start-stop-daemon --stop --signal HUP --oknodo --pidfile ${POSTFWD_PID} > 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 222713
:
153597
|
153599
|
153601
|
153603
|
153605
|
166646
|
166648
|
171075
|
226233
|
226235
|
226237
|
226239
|
226241