Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=96aedcee10029cf66f0e1cd023a9690cf35cb632

commit 96aedcee10029cf66f0e1cd023a9690cf35cb632
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Sep 17 14:18:39 2010 +0000

rsync-3.0.7-3-i686
*rewrite rc script

diff --git a/source/network/rsync/FrugalBuild b/source/network/rsync/FrugalBuild
index d7dd257..1662d56 100644
--- a/source/network/rsync/FrugalBuild
+++ b/source/network/rsync/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=rsync
pkgver=3.0.7
-pkgrel=2
+pkgrel=3
pkgdesc="An open source utility that provides fast incremental file transfer."
url="http://samba.anu.edu.au/rsync/";
groups=('network' 'devel-core')
diff --git a/source/network/rsync/rc.rsyncd b/source/network/rsync/rc.rsyncd
index a308b49..d036062 100644
--- a/source/network/rsync/rc.rsyncd
+++ b/source/network/rsync/rc.rsyncd
@@ -4,22 +4,39 @@
# rc.rsync for Frugalware
# distributed under GPL License

-. /etc/rc.d/rc.functions
-
# chkconfig: 2345 90 10
# description: Start/stop the rsync server, an open source utility that \
#              provides fast incremental file transfer

-if [ "$1" = "stop" ]; then
-       stop "$stoprsync"
+source /lib/initscripts/functions
+
+TEXTDOMAIN=rsyncd
+TEXTDOMAINDIR=/lib/initscripts/messages
+actions=(reload restart status start stop)
+daemon=$"rsyncd server"
+
+pid="pidof rsync"
+
+rc_stop()
+{
+       stop_msg
killall rsync
ok $?
-elif [ "$1" = "restart" ]; then
-       "$0" stop
-       sleep 1
-       "$0" start
-else # start
-       start "$startrsync"
+}
+rc_start()
+{
+
+       start_msg
rsync -4 --daemon
ok $?
-fi
+}
+rc_status()
+{
+        msg "$daemon are"
+        if [ ! -z "$(eval pidof rsync)" ]; then
+                ok 997
+        else
+                ok 998
+        fi
+}
+rc_exec $1
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to