summaryrefslogtreecommitdiff
path: root/lang/erlang14/files/epmd.sh.in
blob: ea57aa23cdc0ec7c65b53dab292bd71afdba7427 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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"