aports/testing/burp/burp.init
Bernhard J. M. Gruen 9d98b12745 testing/burp: upgrade to 2.1.32, fix libressl dependency and runscript
Change in runscript: It has to use the default configuration. With 2.1.x
this is the only correct way to call the status page. Older versions
needed the config file.
2018-04-05 16:36:41 +02:00

31 lines
595 B
Text

#!/sbin/openrc-run
extra_started_commands="reload mon"
description="Burp is a network backup and restore program"
description_reload="Reloads configuration"
description_mon="Displays status monitor"
cfgfile="/etc/burp/burp-server.conf"
command="/usr/bin/burp"
command_args="-c $cfgfile -F ${command_args:-}"
command_background="yes"
pidfile="/run/burp.pid"
start_stop_daemon_arg="--wait 500"
depend() {
need localmount
after bootmisc
use net
}
reload() {
ebegin "Reloading $RC_SVCNAME configuration"
start-stop-daemon --exec $command --signal HUP
eend $?
}
mon() {
$command -a S
}