summaryrefslogtreecommitdiff
blob: a88fd9c34c90e49770ca8bd636f487debf98015b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

depend() {
	need localmount
	use net
}

description="Starts endlessh tarpit"

command="/usr/bin/endlessh"
command_args="${ENDLESSH_ARGS}"
command_background="true"
extra_started_commands="reload"
pidfile="/run/${RC_SVCNAME}.pid"

reload() {
	ebegin "Reloading ${RC_SVCNAME} configuration"
	start-stop-daemon --exec $command --signal HUP
	eend $?
}