packages/rsync: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28906 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-09 23:29:28 +00:00
parent 28a89fcf24
commit f0ca50741f
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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
}