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:
parent
28a89fcf24
commit
f0ca50741f
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=rsync
|
PKG_NAME:=rsync
|
||||||
PKG_VERSION:=3.0.8
|
PKG_VERSION:=3.0.8
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
|
PKG_SOURCE_URL:=http://rsync.samba.org/ftp/rsync/src
|
||||||
|
@ -2,14 +2,13 @@
|
|||||||
# Copyright (C) 2011 OpenWrt.org
|
# Copyright (C) 2011 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
BIN=/usr/bin/rsync
|
|
||||||
PID=/var/run/rsyncd.pid
|
SERVICE_PID_FILE=/var/run/rsyncd.pid
|
||||||
SSD=start-stop-daemon
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
$SSD -p $PID -S -x $BIN -- --daemon
|
service_start /usr/bin/rsync --daemon
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
$SSD -p $PID -K
|
service_stop /usr/bin/rsync
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user