Page 1 of 1 1
Topic Options
#157683 - 2006-02-22 04:28 PM service does not start properly because of parameters
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
hi,
i m calling sc.exe from kixtart to run my application as a service. Application also requires parameters to be passed to it.
syntax is as follows:
SHELL sc create kerberos5 binPath= C:\nf\gssserver.exe -port 999.
Service is created successfully. but when i give a command to start it, error pops-up "The kerberos5 service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion."

Microsoft site does not mention anything about passing parameters to an application.
i need to pass parameters to the application. Can anything be done related to this?
Thank you.

Top
#157684 - 2006-02-22 04:30 PM Re: service does not start properly because of parameters
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
You are missing quotes.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157685 - 2006-02-23 04:51 AM Re: service does not start properly because of parameters
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
The problem is about parameters. If I type the foll. at command prompt:
sc create kerberos5 binPath= C:\nf\gssserver.exe -port 999
the service is created successfully.

Problem occurs when i try to start this service. (Purpose: The exe runs continuously & listens for client calls, so if it is run as a service, it will run without any user intervention.)

Top
#157686 - 2006-02-23 04:55 AM Re: service does not start properly because of parameters
Gargoyle Offline
MM club member
*****

Registered: 2004-03-09
Posts: 1597
Loc: Valley of the Sun (Arizona, US...
look at the properties of the service that you created and see if the params are in there. (path to executable entry)
If they are, then it is an issue with program that you are running and not Kix
_________________________
Today is the tomorrow you worried about yesterday.

Top
#157687 - 2006-02-23 02:49 PM Re: service does not start properly because of parameters
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
What makes you think you don't need quotes when SHELLing from KiX?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157688 - 2006-02-23 06:27 PM Re: service does not start properly because of parameters
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Hi Les,
Problem is not about quotes or KiX, i had already put the quotes when u had replied the first time.
my exe takes parameters & i want to run this exe as a service. i use the following command line to make a service:

sc create kerberos5 binPath= "C:\nf\gssserver.exe -port 999"
Service is created successfully, but it does NOT start. plz. provide pointers to this if possible; Thank you.

Top
#157689 - 2006-02-23 07:18 PM Re: service does not start properly because of parameters
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
Does it start or run properly if you run it purely from a DOS command line or batch file?

If it does, then it is how you're quoting it in KiX.

Top
#157690 - 2006-02-23 07:57 PM Re: service does not start properly because of parameters
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If you cannot make it work at the commandline, then it is NOT a KiX problem.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 568 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.063 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org