1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/lang/erlang14/files/epmd.sh.in
2007-06-14 12:37:11 +00:00

27 lines
397 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"}
. %%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"