mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 07:57:38 -04:00
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
22 lines
357 B
Bash
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"
|