blob: 02d74d5ba6c2efd67ec325a053ddac3e1832ec6b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/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"
|