#!/bin/sh

# PROVIDE: epmd
# REQUIRE: DAEMON mountlate
#
# Add the following line to /etc/rc.conf to enable epmd:
#
# epmd_enable="YES"
#
# Configure optional flags with:
# epmd_flags="-address 127.0.0.1"

. /etc/rc.subr

name=epmd
rcvar=epmd_enable

load_rc_config ${name}

: ${epmd_enable="NO"}
: ${epmd_flags:-""}

procname=/usr/local/bin/epmd
start_cmd="/usr/local/bin/epmd -daemon ${epmd_flags}"
stop_cmd="/usr/local/bin/epmd -kill >/dev/null"

run_rc_command "$1"
