Powerscheduler with Server/Client system (2 Viewers)

mdsflyer

Portal Pro
November 14, 2005
283
6
Home Country
New Zealand New Zealand
Hi again juppe, I've set it up for the 3 clients that i run and have encountered a problem that there are multiple clientactive.exe files running. I suspect that clientcheck is starting a clientactive process for each client. This means that the server is not shutting down as for example this morning i had no clients on but the server had 2 instances of clientactive still left running. Can you confirm exactly how i should write the batch file for multiple clients and see if you can repeat the above on your own system.

Many thanks for looking into this

Cheers
m
 

Juppe

Portal Pro
November 17, 2006
315
45
Home Country
Sweden Sweden
Hi mdsflyer.

I cant repeat your problem, the only thing I can come up with is that the clientcheck.exe has been stoped and then started again without that the clientactive.exe has been stoped, because clientcheck dont do that if its get closed.

The batch file should look like this:

START /min ClientCheck.exe 1 client1 client2 media

where 1 is the number of minutes between the checks for clients and
client1, client2 and media are names on different clients

/Juppe
 

captcol

Portal Pro
June 27, 2007
100
0
49
Home Country
New Zealand New Zealand
so obviously powerscheduler will not hibernate the server if the client that is on the same machine is running as well?
 

MasterMarc

Portal Pro
June 21, 2007
158
138
35
Bochum & Gelsenkirchen
Home Country
Germany Germany
Hi,
I have improved this a little bit on the client-side:
First you need to install "hibernate trigger" (can be easily found with google)
then put wakeup.exe and the wait.exe into C:\windows (C:\WINXP etc)

Then make two .bat -files in C:\ :
wake.bat
Code:
@ECHO OFF
ECHO Starting server - please wait...
wakeup mac-adress (without - or :)
SET NetShareName=\\servername\sharename
:warten
wait 1
IF NOT EXIST %NetShareName% GOTO warten
net use %NetShareName% /delete
net use Z: /delete
net use Z: \\servername\sharename
ECHO Server ready - Starting MediaPortal...
cd "C:\Programme\Team MediaPortal\MediaPortal\"
start MediaPortal.exe
exit
and sleep.bat
Code:
taskkill /im MediaPortal.exe
net use Z: /delete

Put the paths in hibernate trigger and a link to the wake.bat in the auto-start-menu.

Now you have a much faster access (in general, not at the startup) to the files stored in the server directory, because they are connected as a network device (Z:\).

IMPORTANT: Do not start MP when the server is off (can cause crashes), so always start it via the wake.bat (if you like, you can link it to the desktop).

Greetz Marc
 

Users who are viewing this thread

Top Bottom