freebsd-ports/sysutils/burp/files/burp.in
Dmitry Marakasov ba36dddf05 Burp is a backup and restore program.
It uses librsync in order to save on the amount of space that is used
by each backup. It also uses VSS (Volume Shadow Copy Service)
to make snapshots when backing up Windows computers.

WWW: http://burp.grke.org/

PR:		204267
Submitted by:	loic-freebsd@loicp.eu
2015-12-29 18:06:31 +00:00

32 lines
584 B
Bash

#!/bin/sh
# $FreeBSD$
#
# PROVIDE: burp
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# burp_enable (bool): Set to NO by default.
# Set it to YES to enable burp.
# burp_config (path): Set to %%PREFIX%%/etc/burp/burp.cf
# by default.
. /etc/rc.subr
name=burp
rcvar=burp_enable
load_rc_config $name
: ${burp_enable:="NO"}
: ${burp_config="%%PREFIX%%/etc/burp/burp-server.conf"}
command=%%PREFIX%%/sbin/${name}
pidfile=/var/run/${name}.server.pid
command_args="-c $burp_config"
run_rc_command "$1"