ports/mail/archivesmtp/files/archivesmtp.in
Danilo Egea Gondolfo 3a5a3067be - Update from 1.1.b1 to 1.2
- Add stage support

PR:		ports/191518
Submitted by:	netherby@hotmail.com
2014-07-24 21:18:55 +00:00

30 lines
739 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: archivesmtp
# BEFORE: mail
# KEYWORD: shutdown
. /etc/rc.subr
name="archivesmtp"
rcvar=`set_rcvar`
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"}
# archivesmtp_flags= May be used to set optional behaviours.
pidfile="${archivesmtp_pidfile}"
command_args="-p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} ${archivesmtp_flags} &"
run_rc_command "$1"