Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 281905 Details for
Bug 299090
[EBUILD] mail-filter/dspam 3.10.0 and -9999 (GIT MASTER)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
files/dspam.initd
dspam.initd (text/plain), 1.65 KB, created by
Stevan Bajić
on 2011-08-02 21:47:54 UTC
(
hide
)
Description:
files/dspam.initd
Filename:
MIME Type:
Creator:
Stevan Bajić
Created:
2011-08-02 21:47:54 UTC
Size:
1.65 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >dspam_user="root:root" > >depend() { > use logger > need net > before mta > after pg_autovacuum postgresql mysql ldap >} > >checkconfig() { > if [ ! -f "/etc/mail/dspam/dspam.conf" ] > then > eerror "You need a DSPAM configuration in /etc/mail/dspam/dspam.conf" > return 1 > fi > if [ -f "/etc/conf.d/${SVCNAME}" ] > then > if [ -n "${DSPAM_USER_GROUP}" ] > then > if ! ( getent passwd "${DSPAM_USER_GROUP/:*}" >/dev/null 2>&1 ) > then > eerror "Specified user '${DSPAM_USER_GROUP/:*}' for DSPAM unknown" > return 1 > fi > if ! ( getent group "${DSPAM_USER_GROUP/*:}" >/dev/null 2>&1 ) > then > eerror "Specified group '${DSPAM_USER_GROUP/:*}' for DSPAM unknown" > return 1 > fi > dspam_user="${DSPAM_USER_GROUP}" > fi > fi >} > >start() { > checkconfig || return 1 > > ebegin "Starting DSPAM" > start-stop-daemon \ > --start \ > --quiet \ > --background \ > --user "${dspam_user}" \ > --exec /usr/bin/dspam -- \ > --daemon \ > --debug > eend ${?} >} > >stop() { > checkconfig || return 1 > > local include_conf="$(sed -n "s:^Include[\t ]*[\"']\{0,1\}\([^\"']*\).*:\1:gp" /etc/mail/dspam/dspam.conf)" > local DSPAM_PID="$(sed -n "s:^ServerPID[\t ]*[\"']\{0,1\}\([^\"']*\).*:\1:gp" /etc/mail/dspam/dspam.conf ${include_conf[@]}|sed q)" > > if [ -z "${DSPAM_PID}" -a -f "/var/run/dspam/dspam.pid" ]; then > DSPAM_PID="/var/run/dspam/dspam.pid" > fi > > ebegin "Stopping DSPAM" > if [ -n "${DSPAM_PID}" -a -f "${DSPAM_PID}" ]; then > start-stop-daemon \ > --stop \ > --quiet \ > --pidfile ${DSPAM_PID} > eend ${?} > else > eend 1 "Could not stop DSPAM. No PID file!" > fi >}
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 299090
:
214722
|
214726
|
214727
|
214729
|
214730
|
214731
|
214733
|
214735
|
216134
|
216137
|
216650
|
216656
|
216658
|
216660
|
216678
|
216680
|
216681
|
216684
|
227655
|
227657
|
276007
|
276009
|
276011
|
276019
|
276021
|
281899
|
281901
|
281903
| 281905 |
282111
|
282113
|
282115
|
282117
|
282119
|
282121