blob: dddeffa828bf960e771bcafd95590606e5b45630 (
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
|
#!/bin/sh
# PROVIDE: archivesmtp
# BEFORE: mail
. /etc/rc.subr
name="archivesmtp"
rcvar=archivesmtp_enable
command="%%PREFIX%%/sbin/${name}"
# Read settings and set defaults
load_rc_config "$name"
: ${archivesmtp_enable="NO"}
: ${archivesmtp_chuser="nobody"}
: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
pidfile="${archivesmtp_pidfile}"
command_args="${archivesmtp_flags} -p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} &"
run_rc_command "$1"
|