Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 185673 Details for
Bug 263180
mail-filter/amavisd-new-2.6.x: init.d script enhancements: multiple instances, daemon options in conf.d, work reliably.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
changes to amavisd.rc6
rc.patch (text/plain), 1.78 KB, created by
noah
on 2009-03-20 22:19:45 UTC
(
hide
)
Description:
changes to amavisd.rc6
Filename:
MIME Type:
Creator:
noah
Created:
2009-03-20 22:19:45 UTC
Size:
1.78 KB
patch
obsolete
>--- /usr/portage/mail-filter/amavisd-new/files/amavisd.rc6 2009-03-07 06:36:10.000000000 -0800 >+++ /usr/local/portage/mail-filter/amavisd-new/files/amavisd.rc6 2009-03-20 15:11:24.000000000 -0700 >@@ -1,21 +1,45 @@ > #!/sbin/runscript > >+opts="${opts} reload" >+ >+# If you plan to simultaneously use several Amavisd-new instances, don't forget >+# to specify alternate home directories, pid and socket files, etc. You can >+# create separate configuration files, or add instance-specific directives >+# to the main configuration file in an "if ($instance_name eq 'alt')" block. >+# See amavisd-new release notes (2.5.0 release section) for details & examples. >+# Make a symlink from /etc/init.d/amavisd to /etc/init.d/amavisd.alt, >+# copy /etc/conf.d/amavisd to /etc/conf.d/amavisd.alt, and optionally specify >+# a new configuration file using '-c' in AMAVISD_OPTS. >+ >+if [ ${SVCNAME} != "amavisd" ]; then >+ INSTANCE="${SVCNAME##*.}" >+ if [ -n "${INSTANCE}" ]; then >+ AMAVISD_OPTS="${AMAVISD_OPTS} -i ${INSTANCE}" >+ fi >+fi >+ > depend() { > need net > use logger > use antivirus >+ use p0f > before mta > } > > start() { >- ebegin "Starting amavisd-new" >- start-stop-daemon --start --quiet --name amavisd --pidfile /var/amavis/amavisd.pid \ >- --exec /usr/sbin/amavisd >+ ebegin "Starting amavisd-new${INSTANCE:+" (${INSTANCE})"}" >+ /usr/sbin/amavisd ${AMAVISD_OPTS} start >/dev/null 2>&1 > eend $? > } > > stop() { >- ebegin "Stopping amavisd-new" >- start-stop-daemon --stop --quiet --pidfile /var/run/amavis/amavisd.pid >+ ebegin "Stopping amavisd-new${INSTANCE:+" (${INSTANCE})"}" >+ /usr/sbin/amavisd ${AMAVISD_OPTS} stop >/dev/null 2>&1 >+ eend $? >+} >+ >+reload() { >+ ebegin "Reloading amavisd-new${INSTANCE:+" (${INSTANCE})"}" >+ /usr/sbin/amavisd ${AMAVISD_OPTS} reload >/dev/null 2>&1 > 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 263180
: 185673 |
185674
|
185675
|
185677