1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/mail/proxsmtp/files/proxsmtpd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

31 lines
609 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: proxsmtpd
# REQUIRE: DAEMON
#
# Add the fellowing line to /etc/rc.conf to enable proxsmtpd:
#
# proxsmtpd_enable (bool): Set to "YES" to enable proxsmtpd.
# Default is "NO".
# proxsmtpd_conf (file): Set location of proxsmtpd.conf.
# Default is "%%PREFIX%%/etc/proxsmtpd.conf"
#
. /etc/rc.subr
name="proxsmtpd"
rcvar=proxsmtpd_enable
load_rc_config ${name}
: ${proxsmtpd_enable="NO"}
: ${proxsmtpd_conf="%%PREFIX%%/etc/proxsmtpd.conf"}
required_files="${proxsmtpd_conf}"
command=%%PREFIX%%/sbin/proxsmtpd
command_args="-f ${proxsmtpd_conf}"
run_rc_command "$1"