SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
ServiceStart/Stop/GetStatus

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
ServiceStart/Stop/GetStatus
Author Message
Shojaee



Joined: 08 Dec 2000
Posts: 3

Post ServiceStart/Stop/GetStatus Reply with quote

I'm running Windows NT 4.0 with SP3 and 24x7 v2.4.1. I need to start/stop a Windows NT service and I created a simple job with only one JAL statement for test. This is the statement: ServiceStart "WorldgroupServer". When I tried to run it with Run Now option, I got an error message: "Error starting service. Not enough permissions or invalid service name". The actual name of this service is "Worldgroup Server" and I tried it (with a space between two words of the service name) but I got that error message again. I tried to run a service with only one word name (called "MDaemon") and it started successfully, so I think there's a problem starting services which have more than one word in their name.
Am I right, and if yes, what can I do?

Shojaee

P.S: I logged on to server as Administrator so I have full access to any resources. Also, the "Worldgroup Server" service startup setting is "Manual", the "Log On As" option is set to "System Account" and the "Allow Service to Interact with Desktop" option is not checked.


Fri Dec 08, 2000 8:17 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: ServiceStart/Stop/GetStatus Reply with quote

The name of the service is not important. Here is the most likely cause of that problem: You cannot start a service if it depends on some other service and that service is not running. So first you must call ServiceStart for that service and then call ServiceStart for the main servcie.

: I'm running Windows NT 4.0 with SP3 and 24x7 v2.4.1. I need to start/stop a
: Windows NT service and I created a simple job with only one JAL statement
: for test. This is the statement: ServiceStart
: "WorldgroupServer". When I tried to run it with Run Now option,
: I got an error message: "Error starting service. Not enough
: permissions or invalid service name". The actual name of this service
: is "Worldgroup Server" and I tried it (with a space between two
: words of the service name) but I got that error message again. I tried to
: run a service with only one word name (called "MDaemon") and it
: started successfully, so I think there's a problem starting services which
: have more than one word in their name.
: Am I right, and if yes, what can I do?

: Shojaee

: P.S: I logged on to server as Administrator so I have full access to any
: resources. Also, the "Worldgroup Server" service startup setting
: is "Manual", the "Log On As" option is set to
: "System Account" and the "Allow Service to Interact with
: Desktop" option is not checked.

Fri Dec 08, 2000 9:51 am View user's profile Send private message
Shojaee



Joined: 08 Dec 2000
Posts: 3

Post Re: ServiceStart/Stop/GetStatus Reply with quote

Thanks for your reply. That service is independent. What else?

: The name of the service is not important. Here is the most likely cause of
: that problem: You cannot start a service if it depends on some other
: service and that service is not running. So first you must call
: ServiceStart for that service and then call ServiceStart for the main
: servcie.

Sat Dec 09, 2000 8:42 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7847

Post Re: ServiceStart/Stop/GetStatus Reply with quote

Check the service name again, it is still incorrect
You can verify this by running NET "WorldGroup Service" from the DOS command line

: Thanks for your reply. That service is independent. What else?

Sat Dec 09, 2000 2:22 pm View user's profile Send private message
Shojaee



Joined: 08 Dec 2000
Posts: 3

Post Re: ServiceStart/Stop/GetStatus Reply with quote

I checked it again and again. I even wrote it in case-sensitive form, and with or without a space between 2 words of service name. Finally, I changed it's name in NT registry and removed the 2nd word, and the problem was solved.

Thank You.

: Check the service name again, it is still incorrect
: You can verify this by running NET "WorldGroup Service" from the
: DOS command line

Mon Dec 11, 2000 2:07 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.