[packages] rsync: Add initscript for rsync daemon
[openwrt/svn-archive/archive.git] / net / rsync / files / rsyncd.init
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2011 OpenWrt.org
3
4 START=50
5 BIN=/usr/bin/rsync
6 PID=/var/run/rsyncd.pid
7 SSD=start-stop-daemon
8
9 start() {
10 $SSD -p $PID -S -x $BIN -- --daemon
11 }
12
13 stop() {
14 $SSD -p $PID -K
15 }