From: Jaroslaw K. <ja...@zd...> - 2004-04-01 22:00:35
|
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. Jarek |
From: <ch...@to...> - 2004-04-02 19:36:06
|
2 bugs I found 1) Not really a bug but when using telnet to test the shutdown linux configuration the telnet that comes with windows 2k sends cr/lf the read statement in the script leaves the cr as part of $REPLY . I was able to filter this off with if [ ${REPLY:0:6} = 'KILLME' ]; then and this still works fine when using it. The 6 would need to be changed for a different length password 2) I am not getting clean shutdowns when shuting down windows while service is running both when starting the service manualy or automaticly. net stop colinux works great. I'm not shure if the problem is that windows is not waiting till the service gives the ok or if the message is not getting sent. (It's just fscking due to unclean shutdown) I could do further tests to see on monday or tuesday if you can not reproduce this. I'm using an up to date win2k chris > 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. > Any feedback is welcome. Feel free to send patches and I'll include them > in > future versions. > > Jarek |
From: <ch...@to...> - 2004-04-06 15:16:11
|
I did some testing yesterday for 2 below I added a date >> colog to the shutdown_colinux script to see if it was running when shutting down windows. It was not run. I double checked that the colog was generated when doing a net stop colinux it was. I was thinking could coLinuxService.exe attach itself as a console and then just send the scan codes for the three finger salute. Most inittab files that I have seen are set to do a clean shutdown with this and you do not have to be loged in at that console. It works when the login prompt is up. chris > 2 bugs I found > > 1) Not really a bug but when using telnet to test the shutdown linux > configuration the telnet that comes with windows 2k sends cr/lf the read > statement in the script leaves the cr as part of $REPLY . I was able to > filter this off with > if [ ${REPLY:0:6} = 'KILLME' ]; then > and this still works fine when using it. The 6 would need to be changed > for a different length password > > > 2) I am not getting clean shutdowns when shuting down windows while > service is running both when starting the service manualy or automaticly. > net stop colinux > works great. I'm not shure if the problem is that windows is not waiting > till the service gives the ok or if the message is not getting sent. (It's > just fscking due to unclean shutdown) I could do further tests to see on > monday or tuesday if you can not reproduce this. > I'm using an up to date win2k > > chris > > >> 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. > >> Any feedback is welcome. Feel free to send patches and I'll include them >> in >> future versions. >> >> Jarek > > > > > ------------------------------------------------------- > 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 > |
From: Jaroslaw K. <ja...@zd...> - 2004-04-06 17:36:08
|
It "works-for-me(tm)" on Windows 2003 Enterprise Edition. Perhaps there's some difference between the two systems. I'll investigate it and provide more-debuggish version of coLinuxService so that you can test it. Jarek ----- Original Message ----- From: <ch...@to...> To: <ch...@to...> Cc: "Jaroslaw Kowalski" <ja...@zd...>; <col...@li...> Sent: Tuesday, April 06, 2004 5:16 PM Subject: Re: [coLinux-devel] ANN: CoLinuxService v0.1 released > I did some testing yesterday for 2 below I added a > date >> colog > to the shutdown_colinux script to see if it was running when shutting down > windows. It was not run. I double checked that the colog was generated > when doing a > net stop colinux > it was. > > I was thinking could coLinuxService.exe attach itself as a console and > then just send the scan codes for the three finger salute. Most inittab > files that I have seen are set to do a clean shutdown with this and you do > not have to be loged in at that console. It works when the login prompt is > up. > > > chris > > > > 2 bugs I found > > > > 1) Not really a bug but when using telnet to test the shutdown linux > > configuration the telnet that comes with windows 2k sends cr/lf the read > > statement in the script leaves the cr as part of $REPLY . I was able to > > filter this off with > > if [ ${REPLY:0:6} = 'KILLME' ]; then > > and this still works fine when using it. The 6 would need to be changed > > for a different length password > > > > > > 2) I am not getting clean shutdowns when shuting down windows while > > service is running both when starting the service manualy or automaticly. > > net stop colinux > > works great. I'm not shure if the problem is that windows is not waiting > > till the service gives the ok or if the message is not getting sent. (It's > > just fscking due to unclean shutdown) I could do further tests to see on > > monday or tuesday if you can not reproduce this. > > I'm using an up to date win2k > > > > chris > > > > > >> 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. > > > >> Any feedback is welcome. Feel free to send patches and I'll include them > >> in > >> future versions. > >> > >> Jarek > > > > > > > > > > ------------------------------------------------------- > > 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 > > > |
From: Dan A. <da...@co...> - 2004-04-09 18:28:50
|
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... |
From: Jaroslaw K. <ja...@zd...> - 2004-04-09 18:32:12
Attachments:
scm.patch
|
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... > |
From: <ch...@to...> - 2004-04-09 19:00:17
|
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... >> > |
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... > >> > > > |
From: Dan A. <da...@co...> - 2004-04-09 19:13:03
|
On Fri, Apr 09, 2004 at 09:01:42PM +0200, Jaroslaw Kowalski wrote: > 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. Currently coLinux doesn't allow more than one instance of itself, but it was written along with a design that will make this possible with only a few easy modifications to the daemon and the driver. -- Dan Aloni da...@co... |
From: Dan A. <da...@co...> - 2004-04-09 19:20:46
|
On Fri, Apr 09, 2004 at 08:32:25PM +0200, Jaroslaw Kowalski wrote: > > Hi Dan! > > That's exactly what I was going to release 15 minutes ago ;-))))))))))) > ctrl_alt_del is included. You know what they say, "Great minds think alike" :) > Patch is attached. Can you please review it (I probably have done everything > wrong) and add it to coLinux ? It looks good, I'll add this to the next snapshot. -- Dan Aloni da...@co... |