summaryrefslogblamecommitdiff
path: root/system/rsync/rsyncd.initd
blob: eb05b3b59eacd730d98574db820d75dbae0277b5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                    
#!/sbin/openrc-run

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

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

pidfile="/run/$RC_SVCNAME.pid"
required_files="$cfgfile"

depend() {
	use net
	after firewall
}