1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/sysutils/lsyncd/files/lsyncd.in
Tobias Kortkamp 9a0723ba78 New port: sysutils/lsyncd
Lsyncd is designed to synchronize a local directory tree with low
profile of expected changes to a remote mirror.  Lsyncd is especially
useful to sync data from a secure area to a not-so-secure area.

WWW: https://axkibe.github.io/lsyncd/

PR:		228714
Submitted by:	Junichi Satoh <junichi@junichi.org>
2018-06-10 10:30:14 +00:00

34 lines
559 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: lsyncd
# REQUIRE: LOGIN
# BEFORE: securelevel
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable `lsyncd':
#
# lsyncd_enable="YES"
#
. /etc/rc.subr
name="lsyncd"
rcvar=lsyncd_enable
command="%%PREFIX%%/sbin/lsyncd"
pidfile="/var/run/$name.pid"
# read configuration and set defaults
load_rc_config "$name"
: ${lsyncd_enable="NO"}
: ${lsyncd_configfile:=%%PREFIX%%/etc/$name.conf}
required_files="${lsyncd_configfile}"
command_args="-pidfile $pidfile ${lsyncd_configfile}"
run_rc_command "$1"