crux-initscripts

hacked CRUX initscripts to work with sinit
git clone git://git.2f30.org/crux-initscripts
Log | Files | Refs | README

rsyncd (256B)


      1 #!/bin/sh
      2 #
      3 # /etc/rc.d/rsyncd: start/stop rsyncd daemon
      4 #
      5 
      6 case $1 in
      7 start)
      8 	/usr/bin/rsync --daemon
      9 	;;
     10 stop)
     11 	kill `cat /var/run/rsyncd.pid`
     12 	;;
     13 restart)
     14 	$0 stop
     15 	sleep 2
     16 	$0 start
     17 	;;
     18 *)
     19 	echo "usage: $0 [start|stop|restart]"
     20 	;;
     21 esac
     22 
     23 # End of file