Files
guru/net-irc/pounce/files/pounce.initd
Anna (cybertailor) Vyalkova 71aead8e71 net-irc/pounce: initial import
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2022-02-21 00:01:48 +05:00

26 lines
576 B
Plaintext

#!/sbin/openrc-run
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
extra_started_commands="reload"
description="IRC bouncer"
description_reload="Refresh TLS keys"
command="/usr/bin/pounce"
command_args="${POUNCE_CONFIG}"
command_background=yes
pidfile="/run/${RC_SVCNAME}.pid"
output_log="/var/log/${RC_SVCNAME}.log"
error_log="${output_log}"
depend() {
need net
}
reload() {
ebegin "Refreshing ${RC_SVCNAME} keys"
start-stop-daemon --signal SIGUSR1 --pidfile "${pidfile}"
eend $? "Failed to reload ${RC_SVCNAME}"
}