epmd.init-r1 (457B)
- #!/sbin/openrc-run
- # Copyright 1999-2019 Gentoo Authors
- # Distributed under the terms of the Erlang Public License 1.1
- pidfile="/var/run/epmd.pid"
- depend() {
- need net.lo
- before sshd
- }
- start() {
- ebegin "Starting Erlang Port Mapper Daemon"
- start-stop-daemon --start --quiet \
- --pidfile "${pidfile}" \
- --exec /usr/bin/epmd -- $command_args
- eend $?
- }
- stop() {
- ebegin "Stopping Erlang Port Mapper Daemon"
- /usr/bin/epmd -kill >/dev/null
- eend $?
- }