From: Jaroslaw K. <ja...@zd...> - 2004-04-09 19:01:19
|
In theory - yes. You can create as many services as you like. In practice - the services get created but I haven't checked if they can work in parallel. Jarek ----- Original Message ----- From: <ch...@to...> To: "Jaroslaw Kowalski" <ja...@zd...> Cc: "Dan Aloni" <da...@co...>; <col...@li...> Sent: Friday, April 09, 2004 9:00 PM Subject: Re: [coLinux-devel] ANN: CoLinuxService v0.1 released > so does this mean that you can > > colinux -c c:\path\to\config\deb.xml -i coDeb > colinux -c c:\path\to\config\gentoo.xml -i coGentoo > > net start coDeb > net stop coDeb > net start coGentoo > net stop coGentoo > > then someday we can > > net start coDeb > net start coGentoo > net stop coGentoo > net stop coDeb > > chris > > > > > Hi Dan! > > > > That's exactly what I was going to release 15 minutes ago ;-))))))))))) > > ctrl_alt_del is included. > > > > Patch is attached. Can you please review it (I probably have done > > everything > > wrong) and add it to coLinux ? > > > > I did it like that: > > > > INSTALL: > > colinux -c c:\path\to\config\file.xml -i ServiceName > > > > RUN: > > net start ServiceName > > net stop ServiceName > > > > REMOVE: > > colinux -r ServiceName > > > > If you don't provide ServiceName then "CoLinux" is used instead. > > > > Jarek > > > > ----- Original Message ----- > > From: "Dan Aloni" <da...@co...> > > To: "Jaroslaw Kowalski" <ja...@zd...> > > Cc: <col...@li...> > > Sent: Friday, April 09, 2004 8:28 PM > > Subject: Re: [coLinux-devel] ANN: CoLinuxService v0.1 released > > > > > >> On Fri, Apr 02, 2004 at 12:02:47AM +0200, Jaroslaw Kowalski wrote: > >> > I'm proud to announce that CoLinuxService v0.1 has been released. > >> > > >> > It allows you to run colinux as a Windows service and supports clean > >> > shutdown procedure with elementary authentication. > >> > > >> > Full source code & binary is ready for download at > >> > > >> > http://jaak.sav.net/colinux/CoLinuxService-0.1.zip > >> > > >> > The code is available under the BSD license. Note that it contains > > portions > >> > of Microsoft sample code by that comes with Visual C++ and I don't > >> think > >> > it's GPL-able. > >> > > >> > Installation instructions can be found inside the archive. > >> > > >> > Any feedback is welcome. Feel free to send patches and I'll include > >> them > > in > >> > future versions. > >> > >> This looks very nice, and I'd would really like to see this merged into > >> coLinux, but as command line options to the daemon (along with icons set > >> by the installer). > >> > >> Think about the potential: If colinux-daemon.exe is aware that it runs > >> as > > a > >> service, on ServiceStop() it can send an ctrl_alt_del() message to the > >> Linux VM and cause it to shutdown cleanly - this means no xinetd network > >> hacks. > >> > >> I'd like it to go like this: Whenever you install colinux-daemon as > > service > >> using a command line such as: > >> > >> colinux-dameon -s install -n coLinuxServiceName [more paramters] > >> > >> It would take the other parameters and use them on Start. Then, you > >> could > >> do something like: > >> > >> colinux-dameon -s start -n coLinuxServiceName > >> colinux-dameon -s stop -n coLinuxServiceName > >> > >> Instead of using service.cpp it would be better to code something > >> similar > >> only with the needed functionality. > >> > >> -- > >> Dan Aloni > >> da...@co... > >> > > > |