summaryrefslogtreecommitdiff
path: root/dev-lang/erlang/files/epmd.init-r2
blob: 52f6d72b0fe7effecf45b91d99d9db1140d6b62e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
# Copyright 1999-2019 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() {
	need net.lo
	before sshd
}

stop() {
	ebegin "Stopping ${name}"
	${command} -kill >/dev/null
	eend $?
}