aboutsummaryrefslogtreecommitdiff
path: root/archivers/urbackup-client/files/urbackup_client.in
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/urbackup-client/files/urbackup_client.in')
-rw-r--r--archivers/urbackup-client/files/urbackup_client.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/archivers/urbackup-client/files/urbackup_client.in b/archivers/urbackup-client/files/urbackup_client.in
new file mode 100644
index 000000000000..d31dcbb973b6
--- /dev/null
+++ b/archivers/urbackup-client/files/urbackup_client.in
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: urbackup_client
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add these lines to /etc/rc.conf.local or /etc/rc.conf
+# to enable this service:
+#
+# urbackup_client_enable (bool): Set to NO by default.
+# Set it to YES to enable the UrBackup Client Backend.
+
+. /etc/rc.subr
+
+name=urbackup_client
+desc="UrBackup Client Backend"
+rcvar=urbackup_client_enable
+
+load_rc_config $name
+
+: ${urbackup_client_enable:=NO}
+
+command=%%PREFIX%%/sbin/urbackupclientbackend
+pidfile=/var/run/urbackupclientbackend.pid
+
+command_args="-d -w $pidfile"
+
+run_rc_command "$1"