Keeping Syncthing Running: Windows 7 & Cygwin

For those who want to start syncthing as a service under windows (7) using the cygwin environment here is a bash script that expects the syncthing exe under for personal directory/bin Start it using the cygwin bash shell and it stays silently in the background and logs in files.

# wrapper script to syncthing executable
#set -x

DATE=`date +%Y-%m-%d_%H-%M-%S`
IDENT=`basename $0`

./bin/syncthing.exe -home="${LOCALAPPDATA}/Syncthing" 1>>$OUT 2>>$ERR &
echo "$IDENT started at $DATE." >>$LOG

exit 0

This really needs to be built into an installer but thanks for the suggestion.