aboutsummaryrefslogtreecommitdiffstats
path: root/main/rsync/rsyncd.initd
blob: 8d60a9399af2bd51070a9677f8420498b411c487 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/sbin/openrc-run

supervisor=supervise-daemon

: ${cfgfile:="/etc/rsyncd.conf"}

name="rsync daemon"
description="A file transfer program to keep remote files in sync"

command="/usr/bin/rsync"
command_args="--daemon --config=$cfgfile $RSYNC_OPTS"
command_args_foreground="--no-detach"

required_files="$cfgfile"

depend() {
	use net
	after firewall
}