mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
f849b1ec93
- fixes for incorrect ZFS fs name in jcoldmigrate - jail start via taskd - bhyve: support for VM auto start - bhyve: add virtio RNG for FreeBSD 10.1+ PR: 192662 Submitted by: olevole@olevole.ru (maintainer)
28 lines
492 B
Bash
28 lines
492 B
Bash
#!/bin/sh
|
|
# PROVIDE: cbsdrsyncd
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
# cbsdrsyncd_enable="YES"
|
|
# cbsdrsyncd_flags="<set as needed>"
|
|
#
|
|
# See rsync(1) for cbsdrsyncd_flags
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
. /etc/rc.conf
|
|
|
|
name="cbsdrsyncd"
|
|
rcvar=cbsdrsyncd_enable
|
|
|
|
command="%%PREFIX%%/bin/rsync"
|
|
command_args="--daemon"
|
|
pidfile="/var/run/$name.pid"
|
|
required_files="${cbsd_workdir}/etc/rsyncd.conf"
|
|
|
|
# read configuration and set defaults
|
|
load_rc_config "$name"
|
|
: ${cbsdrsyncd_enable="NO"}
|
|
|
|
run_rc_command "$1"
|