freebsd-ports/lang/erlang/files/epmd.sh.in
Doug Barton 1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00

25 lines
383 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: epmd
# REQUIRE: LOGIN
#
# Add the following line to /etc/rc.conf to enable epmd:
#
# epmd_enable="YES"
#
epmd_enable=${epmd_enable:-"NO"}
. /etc/rc.subr
name=epmd
rcvar=`set_rcvar`
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"