Bugzilla – Bug 5903
NET START squeezesvc does not start SqueezeCenter service.
Last modified: 2009-07-31 10:15:06 UTC
System Info: Dell, OPTIPLEX GX620, XP SP2 ENU, SqueezeBox connected SqueezeCenter of build 2007-10-23 and 2007-10-24 Steps to Reproduce: 1. Install the nightly build of SqueezeCenter. 2. SqueezeCenter starts automatically. SqueezeBox lights up. 3. Bring up a DOS window. 4. Type "NET STOP squeezesvc". 5. After about 30 seconds, notice the SqueezeBox turns off. SqueezeTray indicates SqueezeCenter is off. 6. Type "NET START squeezesvc". 7. Wait and wait and wait. 8. Notice there is a message saying the service cannot be started. 9. Wait some more. 10. Notice nothing happens.
This bug prevents the smooth running of one of the auto tests suites. The script can stop the SqueezeCenter, but not start it back. Is there any command like "--restart" for SqueezeCenter? Or is there a way to start a process in a Perl script, then run the next line without killing the process first. Something like: system("SqueezeCenter.exe"); print "Just started SqueezeCenter.\n"; As is now, unless the SqueezeCenter process is stopped, the print line is never run.
system("start squeezecenter.exe') ? (I don't recall my windows command lines well enough) also try: Proc::Background->new($command, @Args) -- taken from Slim::Music::Import
Can you confirm that MySQL isn't running when you try to start squeezesvc? I was able to reproduce the issue under this circumstances. If you start MySQL first, does net start work?
Yes, SqueezeMySQL is turned off also. If "NET START SqueezeMySQL" is called first, "NET START squeezesvc" succeeds. Thank You. So, is this a bug then?
Hi, KDF, The Proc::Background method worked perfectly. Thanks
is a service STOPable by a normal user, but not STARTable?
It looks like it was not startable from the command line only. Using the service control panel does work perfectly well. Wallace, what about "sc start squeezsvc"? That's imho the new way to manage services (since Windows 2000? :-))
Just tested this myself: net start squeezsvc - failure net stop squeezesvc - ok sc start squeezesvc - ok, but will return immediately with a state of "start pending" sc stop squeezesvc - dito -> replace net with sc and add some check (sc query squeezesvc) to know whether the service is up or not IMHO this isn't a bug in SC, but rather an inconsistency in Windows' tools to handle services.
Reduce number of active targets for SC