I have a Rails app running under mongrel as a windows service on a Windows Server 2003 installation.
I'd like to automate deploying new versions of the app from my Ubuntu dev server.
Cygwin is installed on the Windows server for this purpose. I can connect in via ssh and net stop servicename
but net start servicename
doesn't bring the service up. My initial thoughts were maybe there are windows-specific paths involved in mongrel::service and under a cygwin environment it chokes?
Any help would be appreciated!
Have you tried it using a different command line util like sc.exe?
Does the service start when you try it through the services GUI/MMC? If so then perhaps you need to take a second look to verify that your using the right service name.
Not sure if this is the same problem I've had with sshd, but make sure you only have 1 cygwin dll laying around your system. If there is more than one in the path it might be causing problems. With sshd I couldn't even get the service to start.
Consider trying a stand-alone SSH server for Windows, like VShell or freeSSHd.
I remember using copSSH a while ago with good results.