ports/mail/mailfromd/files/mailfromd.in
Alexey Dokuchaev c1e006f35b mail/mailfromd: the port had been updated to version 8.14
Also, fix `calloutd' startup script (it works under unprivileged
user and thus cannot write to /var/run directly) and reduce some
gratuitous differences between startup script templates.

Prodded by:	maintainer
2022-09-16 06:58:28 +00:00

22 lines
357 B
Bash

#!/bin/sh
#
# PROVIDE: mailfromd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
#
. /etc/rc.subr
name="mailfromd"
rcvar=mailfromd_enable
: ${mailfromd_enable="NO"}
: ${mailfromd_flags}
: ${mailfromd_runpath="%%MFD_RUN_DIR%%"}
command="%%PREFIX%%/sbin/${name}"
pidfile="${mailfromd_runpath}/${name}.pid"
load_rc_config ${name}
run_rc_command "$1"