~ubuntu-branches/ubuntu/lucid/spamassassin/lucid-proposed

« back to all changes in this revision

Viewing changes to spamd/netbsd-rc-script.sh

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville, Ubuntu Merge-o-Matic, Laurent Bigonville
  • Date: 2006-07-31 15:40:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060731154008-j37ulp5pgfkddegw
Tags: 3.1.3-1ubuntu1
[ Ubuntu Merge-o-Matic ]
* Merge from debian unstable.

[ Laurent Bigonville ]
* fix debian/control.
* drop debian/patches/40_fix_dns_issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#
3
3
# $NetBSD$
4
4
#
 
5
# Start script for 'spamd' installed by the pkgsrc package collection
 
6
# running on *BSD, MacOS X, Solaris, Linux, and various other U*IX-like
 
7
# systems.
 
8
#
5
9
# The 'spamd' daemon checks emails provided by the 'spamc' client for signs
6
10
# of spam
7
11
#
9
13
#   @PREFIX@/share/doc/spamassassin/spamd/README.spamd
10
14
# especially the section about security.
11
15
 
12
 
## only for NetBSD
 
16
## only for DragonFlyBSD/NetBSD
13
17
# PROVIDE: spamd
14
18
# REQUIRE: LOGIN
15
19
# BEFORE: mail
34
38
extra_commands="reload"
35
39
sig_reload="HUP"
36
40
 
37
 
# default values, may be overridden on NetBSD by setting them in /etc/rc.conf
 
41
# default values, may be overridden on NetBSD/DragonFlyBSD by setting them
 
42
# in /etc/rc.conf
38
43
spamd_flags=${spamd_flags-"-H -c"}
39
44
spamd=${spamd:-NO}
40
45
spamd_fdlimit=${spamd_fdlimit-"128"}
41
46
 
42
 
OPSYS=@OPSYS@ # set during package build
43
 
INTERPRETER_SUPPORT=@INTERPRETER_SUPPORT@ # set during package build
 
47
# both set during package build
 
48
OPSYS=@OPSYS@
 
49
INTERPRETER_SUPPORT=@INTERPRETER_SUPPORT@
44
50
 
45
 
# A default limit of 64 (at least on NetBSD) may be too low for many
 
51
# A default limit of 64 on NetBSD may be too low for many
46
52
# people (eg with addional RBL rules)
47
53
SOFT_FDLIMIT=`ulimit -S -n`
48
54
HARD_FDLIMIT=`ulimit -H -n`
96
102
        kill -${sig_reload} ${the_spamd_pid}
97
103
}
98
104
 
99
 
if [ "${OPSYS}" = "NetBSD" ]; then
 
105
if [ "${OPSYS}" = "NetBSD" -o "${OPSYS}" = "DragonFly" ]; then
100
106
        if checkyesno INTERPRETER_SUPPORT; then
101
107
          : # support for 'command_interpreter' was added in NetBSD 1.6
102
108
        else
110
116
        load_rc_config $name
111
117
        run_rc_command "$1"
112
118
 
113
 
else # not NetBSD
 
119
else # not NetBSD or DragonFlyBSD
114
120
 
115
121
        if [ -f ${pidfile} ];  then
116
122
                the_spamd_pid=`head -1 ${pidfile}`