Windows tasks to restart TV Server

Discussion in 'General' started by Digsy, September 2, 2018.

  1. Digsy

    Digsy Portal Pro

    Joined:
    August 29, 2018
    Messages:
    174
    Likes Received:
    11
    Gender:
    Male
    Ratings:
    +19 / 1
    Home Country:
    Great Britain (UK) Great Britain (UK)
    Show System Specs
    Not sure how useful this is to others but I thought I would share it here anyway.

    My EPG grabber (EPG Collector) runs as a scheduled task overnight on my MP2 server machine. This task also puts the PC to sleep afterwards. I had noticed that when waking from sleep the TV Server was always stopped so I wrote another scheduled task to restart it automatically when the PC resumes from sleep.

    I also had an error where the TV Server shut down unexpectedly (no idea why). Auto restart seemed to fail so I wrote another scheduled task to watch the MP2-Server service and try to restart it if it ends with an error code=2 (which means it stopped unexpectedly).

    I have attached instructions on how to create both tasks.


     

    Attached Files:

    • Thank You! Thank You! x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. azzuro
    • Team MediaPortal

    azzuro Test Group

    Joined:
    May 10, 2007
    Messages:
    8,523
    Likes Received:
    2,566
    Occupation:
    technician HVAC
    Location:
    France - IDF
    Ratings:
    +4,251 / 13
    Home Country:
    France France
    Show System Specs
    this one can be good for our wiki.
    can you publish the source file ?
     
    • Thank You! Thank You! x 1
  4. Digsy

    Digsy Portal Pro

    Joined:
    August 29, 2018
    Messages:
    174
    Likes Received:
    11
    Gender:
    Male
    Ratings:
    +19 / 1
    Home Country:
    Great Britain (UK) Great Britain (UK)
    Show System Specs
    Sure, no problem. But I might do a better one which is more "click by click" to make it easier to follow. I will try to publish something by the weekend.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!