aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang/files/epmd.in
diff options
context:
space:
mode:
Diffstat (limited to 'lang/erlang/files/epmd.in')
-rw-r--r--lang/erlang/files/epmd.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/lang/erlang/files/epmd.in b/lang/erlang/files/epmd.in
new file mode 100644
index 000000000000..acf9c58443bd
--- /dev/null
+++ b/lang/erlang/files/epmd.in
@@ -0,0 +1,25 @@
+#!/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=epmd_enable
+
+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"