gentoo/dev-lang/erlang/files/epmd.init-r3
Matthew Smith f18392f540
dev-lang/erlang: add 25.1.1
Also, fix localhost clash.

Signed-off-by: Matthew Smith <matthew@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/26360
2022-10-16 11:22:39 +01:00

24 lines
384 B
Plaintext

#!/sbin/openrc-run
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the Erlang Public License 1.1
name="Erlang Port Mapper Daemon"
command="/usr/bin/epmd"
command_user="epmd"
command_group="epmd"
command_background=yes
pidfile="/var/run/epmd.pid"
depend() {
use net
before sshd
}
stop() {
ebegin "Stopping ${name}"
${command} -kill >/dev/null
eend $?
}