March 20, 201016 yr Hi I have been using this thread to set up rsync on my unraid: http://lime-technology.com/forum/index.php?topic=2165.0 But for some reason I can not get it to start automatically after reboot - or manually when running the script in a telnet session The script I'm haveing trouble with: S20-init.rsyncd if ! grep ^rsync /etc/inetd.conf > /dev/null ; then cat <<-EOF >> /etc/inetd.conf rsync stream tcp nowait root /usr/sbin/tcpd /usr/bin/rsync --daemon EOF read PID < /var/run/inetd.pid kill -1 ${PID} fi cp /boot/custom/etc/rsyncd.conf /etc/rsyncd.conf I get the error ./S20-init.rsyncd: line 9: syntax error: unexpected end of file BUT if I copy/paste the content of the script directly to the telnet session rsync starts fine. Hope someone are able to spot my error. Thanks Søren
March 20, 201016 yr See here: http://lime-technology.com/wiki/index.php?title=FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F
March 20, 201016 yr Author See here: http://lime-technology.com/wiki/index.php?title=FAQ#Why_do_my_scripts_have_problems_with_end-of-lines.3F Thank you very much! - Hours of trying this and that fixed in 2 mins. with the right knowledge. BR Søren
Archived
This topic is now archived and is closed to further replies.