Automating starting and stopping subsonic service

Need help? Post your questions here.

Moderator: moderators

Automating starting and stopping subsonic service

Postby dbdog » Mon Feb 28, 2011 11:00 pm

I'm on an old XP box with too little memory so I'm looking for a way to automatically start and stop subsonic so that it's on while I'm at work and off while I'm home.

Does anyone know what the contents of a batch file should look like to get subsonic to start and stop. I could then run the bat files using scheduler - one to get it to start and one to get it to stop.

Thanks
dbdog
dbdog
 
Posts: 2
Joined: Mon Feb 28, 2011 10:47 pm

Postby bushman4 » Tue Mar 01, 2011 2:30 pm

Sure...

To start subsonic:

Code: Select all
Net start Subsonic

To stop Subsonic:

Code: Select all
Net Stop Subsonic

Hope this helps,

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Postby dbdog » Tue Mar 01, 2011 7:04 pm

Thanks Glenn. Worked like a charm!
dbdog
 
Posts: 2
Joined: Mon Feb 28, 2011 10:47 pm

Postby bushman4 » Tue Mar 01, 2011 7:08 pm

One thing to be careful about... just because the command returns "The service has been stopped successfully" doesn't mean it has completely stopped. I have found that if you run those commands in quick succession (stop then start) the service gets grumpy and doesn't start correctly, or tries to start but fails because of port conflicts.

So wait a minute in between. Let the service completely stop.

In your situation it is moot because you are starting in the morning and stopping many hours later, and then not starting again until many hours later as well.

Glad I could help,

Glenn
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA


Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests