Hello Thiện,<br><br>If you have installed varnish in a full cygwin environment with varnish ( <a href="https://www.varnish-cache.org/trac/wiki/VarnishOnCygwinWindows#InstallFullCygwinenvironmentwithvarnishpackage" target="_blank">https://www.varnish-cache.org/trac/wiki/VarnishOnCygwinWindows#InstallFullCygwinenvironmentwithvarnishpackage</a> ) <br>

<br>you can use "cygrunsrv" util to configure it:<br><ul><li><a href="http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/Cygwin/cygrunsrv.README" target="_blank">http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/Cygwin/cygrunsrv.README</a><br>

</li><li><a href="http://cygwin.wikia.com/wiki/Cygrunsrv" target="_blank">http://cygwin.wikia.com/wiki/Cygrunsrv</a></li><li>[in spanish] <a href="http://www.vicente-navarro.com/blog/2007/07/20/servicios-en-cygwin-syslogd-sshd-telnetd-ftpd-nfsd-etc/" target="_blank">http://www.vicente-navarro.com/blog/2007/07/20/servicios-en-cygwin-syslogd-sshd-telnetd-ftpd-nfsd-etc/</a><br>

</li></ul><br>If you have installed the varnish ZIP bundle (that includes Varnish binaries, GCC compiler, Cygwin, PDCurses and PCRE DLLs) you have to use the wrapper software solution like runasservice, srvany or instsrv:<br>

<ul><li><a href="http://stackoverflow.com/questions/415409/run-batch-file-as-a-windows-service" target="_blank">http://stackoverflow.com/questions/415409/run-batch-file-as-a-windows-service</a></li><li><a href="http://www.techtalkz.com/windows-server-2003/41044-run-bat-file-service-windows-2003-xp.html" target="_blank">http://www.techtalkz.com/windows-server-2003/41044-run-bat-file-service-windows-2003-xp.html</a></li>

</ul><br>Another advice is to check windows event viewer, at administrative tools or executing: eventvwr.msc  (cygwin programs logs some errors into this event viewer)<br><br>Regards,<br><br>Jorge<br><br><div class="gmail_quote">
2011/10/5 Thiện Trần Phước <span dir="ltr"><<a href="mailto:tphuocthien@gmail.com" target="_blank">tphuocthien@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi everybody,<br><br>I uses Varnish Web Cache in Windows Server 2008. Could anybody tell me: how to run Varnish as Windows Service ? <br>

Because this is a server,it should run automatically when Windows is startup.<br><br>

I research multi way to do. Download some wrapper software and intergate Varnish into them. But not success.<br><br>Thanks a lot,<br>Denny Jimmy<br>
<br>_______________________________________________<br>
varnish-dist mailing list<br>
<a href="mailto:varnish-dist@varnish-cache.org" target="_blank">varnish-dist@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dist" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dist</a><br></blockquote></div><br>