From f3d2975053ac056d84e872af7498a51d3d81fbd2 Mon Sep 17 00:00:00 2001 From: Lukc Date: Sun, 12 Dec 2010 04:47:45 +0100 Subject: Recette de rsync ajoutée. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rsync/rsyncd | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 rsync/rsyncd (limited to 'rsync/rsyncd') diff --git a/rsync/rsyncd b/rsync/rsyncd new file mode 100644 index 0000000..8507211 --- /dev/null +++ b/rsync/rsyncd @@ -0,0 +1,23 @@ +#!/bin/sh +# +# /etc/rc.d/rsyncd: start/stop rsyncd daemon +# + +case $1 in +start) + /usr/bin/rsync --daemon + ;; +stop) + kill `cat /var/run/rsyncd.pid` + ;; +restart) + $0 stop + sleep 2 + $0 start + ;; +*) + echo "usage: $0 [start|stop|restart]" + ;; +esac + +# End of file -- cgit v1.2.3-70-g09d2