FAQ  •  Register  •  Login

How to start service and console at same time?

<<

freebo99

Serviio newbie

Posts: 7

Joined: Mon Jul 29, 2013 1:55 pm

Post Mon Jul 29, 2013 2:02 pm

How to start service and console at same time?

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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 29, 2013 3:01 pm

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

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.
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Jul 29, 2013 3:57 pm

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

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
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 29, 2013 5:38 pm

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

Maybe a wiki article? ;-)
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Mon Jul 29, 2013 6:39 pm

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

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?

Return to General discussion

Who is online

Users browsing this forum: No registered users and 28 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.