summaryrefslogtreecommitdiff
path: root/dev-lang/erlang/files/epmd.init-r1
blob: bdd441b997a897924e17e24751cea95a8de62b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/sbin/openrc-run
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the Erlang Public License 1.1

pidfile="/var/run/epmd.pid"

depend() {
	need loopback
	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 $?
}