From: Jaroslaw K. <ja...@zd...> - 2004-04-01 17:05:30
|
Here's my quick and dirty way to run coLinux as a service in a reliable manner. I have written a small service process, called CoLinuxService. When started it spawns a new instance of "colinux-daemon.exe". The service terminates whenever the colinux-daemon.exe dies (something difficult to achieve with srvany.exe). I needed a way to reliably shutdown the coLinux instance, so I developed a quick hack. The linux machine has a special "xinetd" listener that listens on port 15555 does nothing but shutting down the machine. With this mechanism in place, whenever CoLinuxService receives "Stop" command it just connects to the specified port and this initiates the safe shutdown sequence. If "connect()" call fails the colinux-daemon.exe is terminated. The mechanism somewhat proved to reliable and I had no problems with it for 4, and that's why I decided to publish it. Binary of CoLinuxService.exe is available at http://jaak.sav.net/colinux/CoLinuxService.zip Setup instructions inside. Contact me if you want to get access to the source code. Jarek ----- Original Message ----- From: "JOSE MIGUEL MARTINEZ" <tx...@cl...> To: <col...@li...>; <col...@li...> Cc: <tx...@eu...> Sent: Thursday, April 01, 2004 6:15 PM Subject: [coLinux-devel] Wishlist > > First of all, congratulations and thanks for this great software. > Now I can get rid of vmware and cygwin and use something more useful and > open ;-) > > I wanted to add something to the whislist, it is something I would find > really useful. I use colinux for getting a handy debian system when I > have to work in Windows. But I would like to get rid of the two windows > opened when colinux starts. I do not need them as I connect to colinux > through ssh, and I would thank put them in a small icon in the task bar. > (as messenger and getright do). > > Another thing I would like is having a colinux machine running as a > service, not needing to log in a Windows session to have it runnning and > being started when windows starts. Later I could log in via ssh and this > way I could do a lot of things I like to do on Unix machines (tunnels, > cron jobs...) in Windows machines I cannot migrate. > > Thanks for all and congratulations again for this great piece of software, > txemi. > > -- > ______________________________ > < hola, soy una firma horrible > > ------------------------------ > \ ^__^ > \ (oo)\_______ > (__)\ )\/\ > ||----w | > || || > > mail: txemi <tx...@eu...> > web: http://txemi.webhop.org > mirror: http://txemi2.webhop.org > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > coLinux-devel mailing list > coL...@li... > https://lists.sourceforge.net/lists/listinfo/colinux-devel > |