[mythtv] System-wakeup + new [PATCH]

Christian Hoenig me at christianhoenig.de
Sat Apr 12 23:45:52 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> Christian Hoenig wrote:
> >Do we now wakeup the backend, the mysqlserver (or both if they
> >are diff'rent machines) ?
>
> My thinking, because you aske for feedback :-):
> I guess you have to first wake up the mysql server (that's what
> mythfrontend contacts first, right?) and then the mythbackend server,
> basically everything you want to contact. The problem is that it takes
> very long (up to 1-2 minutes for the server to start), so I guess you
> should add a few preferences which servers can and should be woken up at
> all and maybe even how (an external program - maybe I have some freaky
> home-brewn system or an APC or whatever that can switch the power on and
> off). You then first try to contact them, and if that fails, you try to
> wake them up. I guess you'd need UI feedback for that, given how long it

yepp, all those things were already in my old patch.
Now I included a patch for mythfrontend, which allows to wakeup the sql server 
using any script you like.

Therefore you need to add some things to mysql.txt:
## if you want to wakeup your sqlserver, set this to 1
WOLsqlServer=1
## how many times should the frontend try to connect to the backend?
ConnectRetry=5
## how long should the pause be bettween tries (seconds)
ConnectPause=30
## this is the command used to wakeup the sql server
WOLsqlServerCommand=echo 'come on, wake up ;-)'

Additionally this patch includes some minor changes to mythfrontend/main.cpp, 
which are necessary for further implementation of the whole shutdown/wakeup 
stuff.

I'll have a look at waking up the backendbox later tonight.

Another question:
My pachtes allow the backend to shutdown, if ideling. We additionally need to 
shutdown the other backends. But how do we handle the sql server? should it 
be shut down, too? hmm

and again, every feedback is very welcome :)

take care, have fun
/christian




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+mHsFmauZIX3ydQURAgZcAKCOnRQNXTb/DtNbsZpMcOKHwTkoiACcDBCq
eLPuhq+Muhg0lyW3rkkXhjw=
=B7w7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythfrontend_main.cpp.20030412
Type: text/x-diff
Size: 3470 bytes
Desc: not available
Url : /pipermail/attachments/20030412/f57500db/mythfrontend_main.cpp.bin


More information about the mythtv-dev mailing list