blob: 28a85e8bef029b9cff3db6833fb1198509dfb17b (
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
28
29
30
31
32
33
34
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: rsyncd
# REQUIRE: LOGIN
# KEYWORD: FreeBSD shutdown
#
# Add the following lines to /etc/rc.conf to enable rsyncd:
#
#rsyncd_enable="YES"
#
# See rsync(1) for flags
#
. %%RC_SUBR%%
name=rsyncd
rcvar=`set_rcvar`
command=%%PREFIX%%/bin/rsync
command_args="--daemon"
pidfile=/var/run/${name}.pid
required_files=%%PREFIX%%/etc/${name}.conf
# set defaults
rsyncd_enable=${rsyncd_enable:-"NO"}
rsyncd_flags=${rsyncd_flags:-""}
load_rc_config ${name}
run_rc_command "$1"
|