projects/aports·blob master · refs

31 lines · 595 B

1#!/sbin/openrc-run
2
3extra_started_commands="reload mon"
4
5description="Burp is a network backup and restore program"
6description_reload="Reloads configuration"
7description_mon="Displays status monitor"
8
9cfgfile="/etc/burp/burp-server.conf"
10
11command="/usr/bin/burp"
12command_args="-c $cfgfile -F ${command_args:-}"
13command_background="yes"
14pidfile="/run/burp.pid"
15start_stop_daemon_arg="--wait 500"
16
17depend() {
18 need localmount
19 after bootmisc
20 use net
21}
22
23reload() {
24 ebegin "Reloading $RC_SVCNAME configuration"
25 start-stop-daemon --exec $command --signal HUP
26 eend $?
27}
28
29mon() {
30 $command -a S
31}