blob: 7ed1e2688a8946e798206dc7b4c5cd25c1d64449 (
plain) (
blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/bin/sh
# File: pop-before-smtp.sh
# Date: Fri Mar 7 11:20:43 2003
# Time-stamp: <2006-03-17 15:29:06 ericx>
# Description: start/stop script for pop-before-smtp daemon
#
# $FreeBSD$
# PROVIDE: pop-before-smtp
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
#
# PLEASE note the distinction between dashes [-] and underscores [_]...
#
# The following pop_before_smtp_* variables may be defined in
# /etc/rc.conf or /etc/rc.conf.d/pop_before_smtp
#
# pop_before_smtp_enable - Set to YES to enable pop-before-smtp
# Default: no
#
# pop_before_smtp_program - Path to pop-before-smtp program
# Default: ${PREFIX}/sbin/pop-before-smtp
#
# pop_before_smtp_config - Path to pop-before-smtp configuration
# Default:
# ${PREFIX}/etc/pop-before-smtp-conf.pl
#
# pop_before_smtp_flags - Flags to pop-before-smtp program
# Default: [none]
#
# pop_before_smtp_pid - Path to pop-before-smtp pid file
# Default: /var/run/pop-before-smtp.pid
#
. %%RC_SUBR%%
# sh interprets dash chars as the numeric minus operator...
name="pop_before_smtp"
filename="pop-before-smtp"
rcvar=`set_rcvar`
load_rc_config $name
command=${pop_before_smtp_program:-"%%PREFIX%%/sbin/${filename}"}
pidfile=${pop_before_smtp_pid:-"/var/run/${filename}.pid"}
config=${pop_before_smtp_config:-"%%PREFIX%%/etc/${filename}-conf.pl"}
command_args="--config=${config}"
command_args="${command_args} ${pop_before_smtp_flags:-''}"
command_args="${command_args} --daemon=${pidfile}"
command_interpreter=%%PERL%%
required_files=${config}
run_rc_command "$1"
|