1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-26 04:35:39 +03:00
aports/testing/heplify-server/heplify-server.initd
Leonardo Arena 52be8680f3 testing/heplify-server: new aport
HEP Capture Server. This is part of the HOMER 7.x suite.
2020-03-13 10:46:37 +00:00

26 lines
565 B
Text

#!/sbin/openrc-run
description="HEP Capture Server & Switch"
supervisor=supervise-daemon
command=/usr/bin/heplify-server
command_args="-config /etc/homer/heplify-server.toml"
command_user=homer
command_group=homer
pidfile="/run/homer/${RC_SVCNAME}.pid"
extra_started_commands=reload
depend() {
need net
after firewall
}
start_pre() {
checkpath --directory --owner $command_user:$command_group ${pidfile%/*}
}
reload() {
ebegin "Reloading PromTargetIP and PromTargetName in ${RC_SVCNAME} configuration"
${supervisor} ${RC_SVCNAME} --signal HUP
eend $?
}