aboutsummaryrefslogtreecommitdiffstats
path: root/testing/burp/burp.init
blob: 4421b4e01d73f39da9afdad7988bd413bd61e57a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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 -c "$cfgfile" -a S
}