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