summaryrefslogtreecommitdiff
path: root/sysutils/burp/files/burp.in
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-29 18:06:31 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-29 18:06:31 +0000
commitba36dddf05dcc583ceed41890c9c9e1c8eaa1d01 (patch)
treef2fc86549d6c5ce4f303494f0896b1f6a566403f /sysutils/burp/files/burp.in
parent- Add LICENSE (diff)
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
Notes
Notes: svn path=/head/; revision=404773
Diffstat (limited to 'sysutils/burp/files/burp.in')
-rw-r--r--sysutils/burp/files/burp.in32
1 files changed, 32 insertions, 0 deletions
diff --git a/sysutils/burp/files/burp.in b/sysutils/burp/files/burp.in
new file mode 100644
index 000000000000..e6f4c14000e2
--- /dev/null
+++ b/sysutils/burp/files/burp.in
@@ -0,0 +1,32 @@
+#!/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"