From: Jason A. P. <pat...@pc...> - 2004-03-16 17:04:09
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jason A. Pattie wrote: | ch...@to... wrote: | | I definatly think that running as a service should be a goal of the | project. | | Although there are plenty of uses for it running as a program there are | | many more that would be better as a service. | | I second this motion. I can devote some time to looking into what it | will take to run this as a service, although it appears that someone | already used the approach I was going to try. That being, find a | wrapper program that will allow an ordinary program to be run as a | service and attempt to use it. | | I also think it should still be allowed to run the way it does now, too. In my searching, I came across the fact that if you have not purchased a copy of the NT Resource Kit, then you cannot legally use/distribute(?) instsrv.exe and srvany.exe. I also came across an e-mail in the cygwin mailing list that discussed this very issue and gave the alternative of cygrunsrv.exe. I've started playing with this as a means to freely install and distribute colinux-daemon.exe as a running service. Unfortunately, it hasn't worked yet either. I've attempted the following: (from cygwin prompt) cygrunsrv.exe --install coLinux --path /cygdrive/c/coLinux/colinux-daemon.exe --args '-d' I've also tried this: cygrunsrv.exe --install coLinux --path /cygdrive/c/WINNT/system32/cmd.exe --args '/k "c:\coLinux\colinux-daemon.exe -d"' It appears that the service is started when using the first example. But the colinux-console cannot connect to it, and I can't ping the IP of the coLinux instance. For the second example, the following error message is spit out: cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. Going to try to figure out why the service isn't starting. Could it potentially have something to do with requirements of cmd.exe or the colinux-daemon executable that aren't being met inside the service environment provided? - -- Jason A. Pattie pat...@xp... Xperience, Inc. (http://www.xperienceinc.com) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFAVzNwuYsUrHkpYtARAo3PAJ4zJY0SA/bN9irLYpR+N7kRdLOrnQCfRZJH bKEKYCJEi11NAS4PYIQApmE= =2Qg/ -----END PGP SIGNATURE----- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. |