summaryrefslogtreecommitdiff
path: root/dev-util/webhook/files/webhook.initd
blob: d87e8cce035fbe37e4854b10c0f25a33e0f05350 (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 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 $?
}