tv service not beeing loaded automatically on startup (1 Viewer)

HTPCSourcer

Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    No, it doesn't. The order of services being installed is not configurable. Since I am calling the script via Task Scheduler upon Startup, one may run into the described issues. In your case because you are logging in as a user, the login/autostart will not be executed before all services are initialized. This would not reliably change when using the RamDiskStarter service and I would still have to check if the service was started.
     

    RicoHTPC

    MP Donator
  • Premium Supporter
  • February 4, 2011
    1,441
    172
    Cuxhaven
    Home Country
    Germany Germany
    @Lehmden: I haven't had a look at your bat yet but to avoid wait.exe couldn't you use the timeout function inside the batch?
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,584
    3,973
    Lehmden
    Home Country
    Germany Germany
    Hi.
    couldn't you use the timeout function inside the batch?
    I have no clue...
    I'm using wait.exe since ages and it does exactly what it should. The 32 kb of "wasted" disk space is no big issue, I'm sure...
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    Timeout works since Vista and will do the job. If you have a resouce ki tinstalled you may also use "sleep x" with x being the time in seconds. Try it, often you are not even aware that the toolkit is active.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,584
    3,973
    Lehmden
    Home Country
    Germany Germany
    The order of services being installed is not configurable.
    Isn't it possible to set a dependency for a service? If so you can set TVService and probably SQL also to depend on "IMDisk Virtual Disk Driver Helper" so those services shouldn't start before IMDisk is ready...
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,584
    3,973
    Lehmden
    Home Country
    Germany Germany
    Hi.
    Timeout works since Vista and will do the job.
    OK, this explains it. I'm using wait.exe much longer than Vista exists... Tried it with timeout /T 10 and it does the job. Nice, thanks.
    New batch attached w/o the need for "wait.exe"
     

    Attachments

    • TVServer-Start.7z
      186 bytes

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    "
    Isn't it possible to set a dependency for a service?
    Interesting idea. One can indeed set additional dependencies for services. Obviously those would be lost with the next MediaPortal update, which resets TVService to its default values. One would need to remember to reissue the necessary commands after updating.

    Not perfect, but even now I need to set TVService start mode back to "Manual" each time. However, because I have to issue additonal commands (set up folders and Shares) I can as well call ImDisk and TVService from the script. The best solution would be to integrate a configurable RamDisk solution in the MePo installer that then directly configures TVServer correctly.
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,584
    3,973
    Lehmden
    Home Country
    Germany Germany
    Hi.
    set up folders and Shares
    If this is meant for RAM Disk, all this is done by the toolkit properly. I need a folder "Timeshift" and this needs to be shared. XBMC depends on a shared timeshift folder, if you want to use XBMC together with MP1 TV Server... This is working here w/o the need of any scripting or a "full size" disk image... Only an empty folder somewhere with all needed sub- folders in is all that is needed...

    Edit:
    No I don't have the XBMC TV Server plugin installed up to now. So this is not the case for this issue, only if someone wants to mark it as "the bad guy";)
     

    HTPCSourcer

    Retired Team Member
  • Premium Supporter
  • May 16, 2008
    11,382
    2,369
    Home Country
    Germany Germany
    I am using IMDIsk on different PCs with different settings. Much easier to quickly configure the script individually and push it to the client. Also, a domain server environment has certain constraints in tems of setting privileges that are not directly compatible with your approach: Loading the image will not create the correct access rights
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    67
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Probably. But as I use Win7 there always a user is logged in so I'm not sure.
    I'm using IMDisk also, but with the Toolkit. The RAM Disk instantly is ready when Windows starts due to a service introduced by the toolkit. This service is mounting the RAM Disk before Desktop is loaded and/or a user is logged in. Should be working on Server OS w/o user login too...

    This whole thing has me very confused.
    I have been using RamDisk on my Win7 Server and Client forever.
    Everything starts up even without a user logged in.

    Lehmden, Can you clear out all the windows events viewer logs and reboot. When its back up, export them and post them. I would love to see what is happening..
     

    Users who are viewing this thread

    Top Bottom