home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
General Forums
Newcomers Forum
For multipurpose-pc MP users...one-click to turn on/off MySQL & TVserver svcs
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="AlexT" data-source="post: 758664" data-attributes="member: 112947"><p>The pc I use to serve MediaPortal is dual-purpose; ie, normal pc operations (net, gaming, encoding, etc) and as a HTPC (serving MediaPortal). There are times when I do not want MP to have x amount of memory and resources allocated to it; ie, when gaming, encoding heavy projects, etc. Before, I would have to go into Administrative Tools|Services and disable MySQL and TVService services and stop them or simply stop them, depending on whether I was planning on rebooting or not. Instead, I created a simple batch file to turn them both off/on and created a shortcut in my start menu to click on to make the action happen. I also created the same but for turning them both back on, in case I needed them running later for a recording session. Yes, opening MP will also start the two services (if in manual or auto service mode) but I wanted to not have to start MP, which I have set to open full-screen and always on my TV; ie, would have to start MP, turn on TV, close MP, turn off TV).</p><p></p><p>This is how I have things configured. Note that I leave MySQL and TVService in manual startup mode in Windows Services but you can also use this if running both services in automatic start mode.</p><p></p><p><strong>STOP SERVICES</strong></p><p></p><p>Copy the following into notepad...</p><p>[CODE]net stop TVService</p><p>net stop MySQL</p><p>exit[/CODE]</p><p>Either create a folder on your system drive (normally C<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> called "whatever" or scripts or tools, etc. and save what you just did in Notepad as "stoptv". When saving, be sure to select ALL FILES and not save it as a .txt file, and include the extension .bat at the end of the filename so it reads "stoptv.bat".</p><p></p><p>Create a shortcut in your start menu program, on your desktop, or in any folder on your system, pin it to the left side of the start menu, put it in your taskbar, etc. Remember that you will need to include a custom path if you do not use a folder called "Tools" on your C: drive and do not name the file "stoptv.bat".</p><p>[CODE]%systemroot%\system32\cmd.exe /k c:\Tools\stoptv.bat[/CODE]</p><p></p><p><strong>START SERVICES</strong></p><p></p><p>[CODE]net start MySQL</p><p>net start TVService</p><p>exit[/CODE]</p><p></p><p>[CODE]%systemroot%\system32\cmd.exe /k c:\Tools\starttv.bat[/CODE]</p><p></p><p>That's it. Alot of talking to do something so easy. Again, a reminder, if you do set your MySQL & TVService to manual and do turn them off, if you have something scheduled to record later that day or night, do not forget to start them again.</p><p></p><p>Hope this helps out other dual-purpose pc owners.</p></blockquote><p></p>
[QUOTE="AlexT, post: 758664, member: 112947"] The pc I use to serve MediaPortal is dual-purpose; ie, normal pc operations (net, gaming, encoding, etc) and as a HTPC (serving MediaPortal). There are times when I do not want MP to have x amount of memory and resources allocated to it; ie, when gaming, encoding heavy projects, etc. Before, I would have to go into Administrative Tools|Services and disable MySQL and TVService services and stop them or simply stop them, depending on whether I was planning on rebooting or not. Instead, I created a simple batch file to turn them both off/on and created a shortcut in my start menu to click on to make the action happen. I also created the same but for turning them both back on, in case I needed them running later for a recording session. Yes, opening MP will also start the two services (if in manual or auto service mode) but I wanted to not have to start MP, which I have set to open full-screen and always on my TV; ie, would have to start MP, turn on TV, close MP, turn off TV). This is how I have things configured. Note that I leave MySQL and TVService in manual startup mode in Windows Services but you can also use this if running both services in automatic start mode. [B]STOP SERVICES[/B] Copy the following into notepad... [CODE]net stop TVService net stop MySQL exit[/CODE] Either create a folder on your system drive (normally C:) called "whatever" or scripts or tools, etc. and save what you just did in Notepad as "stoptv". When saving, be sure to select ALL FILES and not save it as a .txt file, and include the extension .bat at the end of the filename so it reads "stoptv.bat". Create a shortcut in your start menu program, on your desktop, or in any folder on your system, pin it to the left side of the start menu, put it in your taskbar, etc. Remember that you will need to include a custom path if you do not use a folder called "Tools" on your C: drive and do not name the file "stoptv.bat". [CODE]%systemroot%\system32\cmd.exe /k c:\Tools\stoptv.bat[/CODE] [B]START SERVICES[/B] [CODE]net start MySQL net start TVService exit[/CODE] [CODE]%systemroot%\system32\cmd.exe /k c:\Tools\starttv.bat[/CODE] That's it. Alot of talking to do something so easy. Again, a reminder, if you do set your MySQL & TVService to manual and do turn them off, if you have something scheduled to record later that day or night, do not forget to start them again. Hope this helps out other dual-purpose pc owners. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
Newcomers Forum
For multipurpose-pc MP users...one-click to turn on/off MySQL & TVserver svcs
Contact us
RSS
Top
Bottom