PDA

View Full Version : Installing and starting a Service



NewsArchive
12-09-2010, 01:33 AM
I am creating a new install and I want to install and start a service at the
end. I have used the script editor to add a start service comandbut it does
not appear to be running after a test install.

Am i missing something?

--
Ron Childs
C 6.3 9059

NewsArchive
12-09-2010, 01:34 AM
Ron,

> I am creating a new install and I want to install and start a service at
> the end. I have used the script editor to add a start service comandbut
> it does not appear to be running after a test install.
>
> Am i missing something?

I would suggest to check the return value. If the function succeeds, the
%_SB_ERRORCODE% return value is zero. If the function fails, the return
value is a system error code. Perhaps this gives you more information why
your service does not work (start).

Friedrich

NewsArchive
12-09-2010, 01:34 AM
BTW, the "Edit Service..." lets you start a service. Just check the
%_SB_ERRORCODE% return value after the call to this function.

Friedrich

NewsArchive
12-09-2010, 01:35 AM
Thanks Friedrich . What value should I check for?


--
Ron Childs
C 6.3 9059

NewsArchive
12-09-2010, 01:35 AM
Ron,

> Thanks Friedrich . What value should I check for?

From the help<g>...

> Return Values
>
> If the function succeeds, the %_SB_ERRORCODE% return value is zero.
>
> If the function fails, the return value is nonzero,

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://www.cpcs-inc.com

NewsArchive
12-09-2010, 01:35 AM
Thanks Lee,

Thats what I tested for If %% > 0 then display error.
The service does not start and no error is displayed.
I can work around it for now.


--
Ron Childs
C 6.3 9059

NewsArchive
12-09-2010, 01:36 AM
Ron

Maybe retvalue is -ve. So try testing %% Not= 0

john

NewsArchive
12-09-2010, 01:36 AM
Thanks John. Had not thought of the less than aspect.

--
Ron Childs
C 6.3 9059

NewsArchive
12-09-2010, 01:36 AM
Ron,

> Am i missing something?

Unless things have changed make sure the service name doesn't have
embedded spaces. The description can though.

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://www.cpcs-inc.com