ports/mail/mailfromd/files/calloutd.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

26 lines
448 B
Bash

#!/bin/sh
#
# PROVIDE: calloutd
# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
#
. /etc/rc.subr
name="calloutd"
rcvar=calloutd_enable
: ${calloutd_enable="NO"}
: ${mailfromd_runpath="%%MFD_RUN_DIR%%"}
command="%%PREFIX%%/sbin/${name}"
pidfile="${mailfromd_runpath}/${name}.pid"
required_files="%%PREFIX%%/etc/mailfromd.conf"
extra_commands="configlint"
configlint_cmd="${name} --config-lint"
load_rc_config ${name}
run_rc_command "$1"