0

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!

cpm
  • 143
  • 2
  • 5

4 Answers4

2

Have you tried it using a different command line util like sc.exe?

0

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.

mrTomahawk
  • 1,119
  • 1
  • 10
  • 17
  • It works fine via GUI or when I "net start|stop" from cmd.exe. And, the service stops when I run "net stop" over SSH. It's just "net start" over SSH that doesn't work. – cpm May 01 '09 at 03:43
0

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.

Sam Merrell
  • 236
  • 2
  • 5
  • Thanks for the try, but I don't think that's what's going on. This is the first time Cygwin or anything even remotely related to Cygwin has been installed on the machine, and sshd itself is running without problems. – cpm May 01 '09 at 16:13
0

Consider trying a stand-alone SSH server for Windows, like VShell or freeSSHd.

I remember using copSSH a while ago with good results.

Ivan
  • 3,172
  • 4
  • 25
  • 34