blob: 1d35cf6703829840b60b4bd4fa1b2bdf378a48da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#!/bin/sh
# $FreeBSD$
# formerly $ FreeBSD: ports/mail/dspam/files/dspam,v 1.1 2005/05/05 21:03:37 pav Exp $
# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.6 2006/02/09 19:14:29 itetcu Exp $
#
# PROVIDE: dspam
# REQUIRE: DAEMON %%MYSQL%% %%PGSQL%% %%CLAMD%%
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf[.local] to enable dspam:
#
# dspam_enable="YES"
# you can also set the pid file via dspam_pidfile
#
. %%RC_SUBR%%
name=dspam
rcvar=`set_rcvar`
load_rc_config $name
: ${dspam_enable="NO"}
: ${dspam_pidfile:-/var/run/dspam.pid}
command=%%PREFIX%%/bin/${name}
command_args="--daemon > /dev/null 2>&1 &"
required_dirs=%%DSPAM_HOME%%
required_files=%%PREFIX%%/etc/${name}.conf
extra_commands=reload
reload()
{
kill -HUP `cat $pidfile`
}
run_rc_command "$1"
|