#!/bin/sh
#
# $FreeBSD: ports/lang/erlang/files/epmd.sh.in,v 1.1 2007/06/14 12:35:24 olgeni Exp $
#
# PROVIDE: epmd
# REQUIRE: LOGIN
#
# Add the following line to /etc/rc.conf to enable epmd:
#
# epmd_enable="YES"
#

epmd_enable=${epmd_enable:-"NO"}

. %%RC_SUBR%%

name=epmd
rcvar=`set_rcvar`

prefix=%%PREFIX%%
procname=${prefix}/bin/epmd
start_cmd="${prefix}/bin/epmd -daemon"
stop_cmd="${prefix}/bin/epmd -kill >/dev/null"

load_rc_config ${name}
run_rc_command "$1"


syntax highlighted by Code2HTML, v. 0.9.1