gentoo/dev-util/webhook/files/webhook.initd
Holger Hoffstätte 2dfb57229e
dev-util/webhook: add 2.8.1, various additions/improvements
This adds a proper OpenRC init script and out-of-the box configuration.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/36436
Closes: https://bugs.gentoo.org/870304
2024-07-04 20:13:40 -07:00

23 lines
476 B
Plaintext

#!/sbin/openrc-run
# Copyright 2016-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Webhook server"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
command="/usr/bin/webhook"
command_args="${command_args}"
command_background="true"
extra_started_commands="reload"
start_stop_daemon_args=""
depend() {
after net
}
reload() {
ebegin "Reloading webhooks"
start-stop-daemon --signal SIGHUP --pidfile "${pidfile}"
eend $?
}