mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
26 lines
481 B
Text
26 lines
481 B
Text
#!/sbin/openrc-run
|
|
|
|
supervisor=supervise-daemon
|
|
|
|
name="gortr"
|
|
description="The RPKI-to-Router server used at Cloudflare"
|
|
|
|
command="/usr/bin/$RC_SVCNAME"
|
|
command_args="$GORTR_OPTS"
|
|
command_user="$RC_SVCNAME:$RC_SVCNAME"
|
|
|
|
extra_started_commands="reload"
|
|
description_reload="Reload configuration"
|
|
|
|
error_log="/var/log/$RC_SVCNAME.log"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
reload() {
|
|
ebegin "Reloading $RC_SVCNAME configuration"
|
|
$supervisor "$RC_SVCNAME" --signal HUP
|
|
eend $?
|
|
}
|