Page 1 of 1

How to start service and console at same time?

PostPosted: Mon Jul 29, 2013 2:02 pm
by freebo99
hi

How to start service and console at same time?
on windows..

i have put service to manual on a slow pc so that it does not start on boot.

i want to start the service and the console at the same time? preferabley by just clicking on serviio console.

and the same for mac osx?

thx

freebo99

Re: How to start service and console at same time?

PostPosted: Mon Jul 29, 2013 3:01 pm
by zip
instead of running the Windows service you can run Serviio.bat and ServiioConsole.bat from the bin folder. You could write a wrapper bat file that executes them in sequence. I think there might be an example somewhere here, try to search.

Re: How to start service and console at same time?

PostPosted: Mon Jul 29, 2013 3:57 pm
by jhb50
Here is the startserviio.bat I use:
  Code:
@echo off
: http://support.microsoft.com/kb/251192 how to start a service with sc command
: ensure serviioX console and service is stopped
echo ..
echo Stopping Serviio Service, Serviio, and Console if started...
echo ..
echo This takes about 2 seconds...
call "C:\Program Files\Serviio\bin\serviio.bat" -stop
sc stop serviio
@CHOICE /T 2 /D Y> NUL

echo ..
echo Now Starting Serviio Service and Console.....
echo ..
echo This takes about 4 seconds...
echo ..
sc start serviio
@CHOICE /T 4 /D Y> NUL
start "" "C:\Program Files\Serviio\bin\serviioconsole.exe"
echo ..
echo And 13 seconds to start the Console...
@CHOICE /T 13 /D Y> NUL

Re: How to start service and console at same time?

PostPosted: Mon Jul 29, 2013 5:38 pm
by zip
Maybe a wiki article? ;-)

Re: How to start service and console at same time?

PostPosted: Mon Jul 29, 2013 6:39 pm
by jhb50
Actually Cerberus did one long ago.. http://wiki.serviio.org/doku.php?id=startup_win
I just built on it. BTW what happened to him?