mirror of
https://github.com/valitydev/gentoo-overlay.git
synced 2024-11-06 01:45:19 +00:00
f5329cc314
* Added missing erlang ebuild * Added missing files for erang-21.8.1-r1
27 lines
534 B
Plaintext
27 lines
534 B
Plaintext
#!/sbin/openrc-run
|
|
# Copyright 2010-2019 Gentoo Authors
|
|
# Distributed under the terms of the Apache License, Version 2.0
|
|
|
|
ZT_ADDRESS=""
|
|
pidfile="/var/run/epmd.pid"
|
|
command_args="-daemon -relaxed_command_check -address 127.0.0.1"
|
|
|
|
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 $?
|
|
}
|