summaryrefslogtreecommitdiffstats
path: root/rsync/rsyncd
blob: 850721119b17de80edfb1750e3b36ea05927edc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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