- Startup script now 1/2 works as in it will start the daemon but not stop it :) - Update smx.conf for 0.0.Alpha9.0 - Add MESSAGE - Add local hostname to mt via INSTALL
33 lines
656 B
Bash
33 lines
656 B
Bash
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: sendmailx.sh,v 1.4 2005/08/02 21:39:08 adrian_p Exp $
|
|
#
|
|
# PROVIDE: sendmailx
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
|
|
if [ -f /etc/rc.subr ]
|
|
then
|
|
. /etc/rc.subr
|
|
fi
|
|
|
|
name="sendmailx"
|
|
rcvar=$name
|
|
ctl_command="@PREFIX@/sbin/mcp"
|
|
conf_file="@PKG_SYSCONFDIR@/smx.conf"
|
|
required_files=${conf_file}
|
|
extra_commands="restart"
|
|
start_cmd="sendmailx_start"
|
|
pidfile="@VARBASE@/run/${name}.pid"
|
|
logdir="@VARBASE@/log/smx/"
|
|
spooldir="@VARBASE@/spool/smx"
|
|
# restart_cmd="sendmailx_restart"
|
|
|
|
sendmailx_start()
|
|
{
|
|
cd ${spooldir} && \
|
|
${ctl_command} -l -p ${pidfile} -L ${logdir} ${conf_file} &
|
|
}
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|