diff --git a/net/rsync/Makefile b/net/rsync/Makefile index 46670e576..85cfb7483 100644 --- a/net/rsync/Makefile +++ b/net/rsync/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rsync PKG_VERSION:=3.0.8 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src diff --git a/net/rsync/files/rsyncd.init b/net/rsync/files/rsyncd.init index 741e09c34..fdbc01662 100644 --- a/net/rsync/files/rsyncd.init +++ b/net/rsync/files/rsyncd.init @@ -2,14 +2,13 @@ # Copyright (C) 2011 OpenWrt.org START=50 -BIN=/usr/bin/rsync -PID=/var/run/rsyncd.pid -SSD=start-stop-daemon + +SERVICE_PID_FILE=/var/run/rsyncd.pid start() { - $SSD -p $PID -S -x $BIN -- --daemon + service_start /usr/bin/rsync --daemon } stop() { - $SSD -p $PID -K + service_stop /usr/bin/rsync }