git: 97061b758bd4 - main - lang/erlang: ensure epmd receives user-configurable flags
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Jul 2024 18:01:55 UTC
The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=97061b758bd431671e3a5c4b0776158da958b3dc commit 97061b758bd431671e3a5c4b0776158da958b3dc Author: Dave Cottlehuber <dch@FreeBSD.org> AuthorDate: 2024-07-09 17:50:40 +0000 Commit: Dave Cottlehuber <dch@FreeBSD.org> CommitDate: 2024-07-25 18:01:32 +0000 lang/erlang: ensure epmd receives user-configurable flags Differential Revision: https://reviews.freebsd.org/D45938 Sponsored by: SkunkWerks, GmbH --- lang/erlang/files/epmd.in | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lang/erlang/files/epmd.in b/lang/erlang/files/epmd.in index 4bfd35b7d740..15bf2c1bf1ae 100644 --- a/lang/erlang/files/epmd.in +++ b/lang/erlang/files/epmd.in @@ -1,23 +1,27 @@ #!/bin/sh # PROVIDE: epmd -# REQUIRE: LOGIN +# REQUIRE: DAEMON mountlate # # Add the following line to /etc/rc.conf to enable epmd: # # epmd_enable="YES" # - -epmd_enable=${epmd_enable:-"NO"} +# 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=%%PREFIX%%/bin/epmd -start_cmd="%%PREFIX%%/bin/epmd -daemon" +start_cmd="%%PREFIX%%/bin/epmd -daemon ${epmd_flags}" stop_cmd="%%PREFIX%%/bin/epmd -kill >/dev/null" -load_rc_config ${name} run_rc_command "$1"