packages/net/rsync/files/rsyncd.init
acinonyx e9106c90a6 [packages] rsync: Remove trailing whitespace error from init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26631 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-12 23:18:26 +00:00

16 lines
212 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2011 OpenWrt.org
START=50
BIN=/usr/bin/rsync
PID=/var/run/rsyncd.pid
SSD=start-stop-daemon
start() {
$SSD -p $PID -S -x $BIN -- --daemon
}
stop() {
$SSD -p $PID -K
}