From: Mike M. <mme...@na...> - 2010-08-05 16:37:11
|
On 8/3/2010 5:53 PM, Henry Nestler wrote: > Hello Mike, > > On 03.08.2010 22:19, Mike Mestnik wrote: >> On 8/3/2010 4:49 PM, Henry Nestler wrote: Hello Mike, >>> On 02.08.2010 18:40, Mike Mestnik wrote: >>>> Push "create" >>>> Push "Nagios Core" >>>> Push 'path="C:\Program Files\Nagios Core\colinux-daemon.exe" >>>> @NagiosCore.conf --run-service "Nagios >>>> Core";autostart=1;depend=CoLinuxDriver;display=Nagios >>>> Core;description=Nagios Core Linux Service, this service manages a >>>> running instance of linux.;' >>>> Call Service >>>> Pop $0 ;response >>> This part us ugly, wrong and will not run on all destinations. >>> >>> * Please never use "C:\Program Files\" directly! Please use the >>> install path "$INSTDIR". >>> * You should use the coLinux service installer. Or you should complete >>> adding all dependensies. You are using TAP? Then should add >>> "tap0801co". The colinux-daemon will parse your config and adds >>> dependencies automatically, if you use such device. >> Sorry to still bother, but after looking at these resources I can't seam >> to discover how this would work as an array. >> http://nsis.sourceforge.net/NSIS_Service_Lib >> http://msdn.microsoft.com/en-us/library/ms682450%28VS.85%29.aspx >> >> ";depend=tap0801co,CoLinuxDriver;" >> is my first guess. > I finally got this working, using... # echo -ne 'CoLinuxDriver\0tap0801co\0\0' | hexdump -ve '4/1 " &i1 %3u," "\\\n"' System::Call "*(&i1 67, &i1 111, &i1 76, &i1 105,\ &i1 110, &i1 117, &i1 120, &i1 68,\ &i1 114, &i1 105, &i1 118, &i1 101,\ &i1 114, &i1 0, &i1 116, &i1 97,\ &i1 112, &i1 48, &i1 56, &i1 48,\ &i1 49, &i1 99, &i1 111, &i1 0,\ &i1 0) i .R1" System::Call 'advapi32::CreateServiceA(i r4, t r2, t R7, i ${SERVICE_ALL_ACCESS}, \ i R4, i R5, i 0, t R6, n, n, i $R1, $R2, $R3) i.r6' However!!! Networking still is not functional. Is there any debugging I can do? > Think, it is not supported by this addon. > The right string for dependency names in CreateService is > "CoLinuxDriver\0tap0801co\0\0". > The delimiter between strings is "\0" and the string termination is > "\0\0". > This would not work with the "StrCpy" in servicelib.nsh, I think. > StrCpy would stop on first 00h. > > In other case, you can assume, that coLinuxDriver will faster load as > the network driver. coLinuxDriver has no more other dependency. Tap > driver needs a complete network being up. So, adding only "tap0801co" > would be enough for delaying coLinux startup. > -- Mike Mestnik Technical Team ___ Nagios Enterprises, INC. Email: mme...@na... Web: www.nagios.com |