mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-22 21:37:35 -08:00
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
23 lines
476 B
Plaintext
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 $?
|
|
}
|