NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 8 9 10 11 12 … 56 Next »
Auto restart recording service utility

 
  • 0 Vote(s) - 0 Average
Auto restart recording service utility
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#1
2007-03-30, 03:50 PM (This post was last modified: 2008-10-01, 08:25 PM by gEd.)
My recording service crashed the other day, no idea why, possibly a problem with the tuner. Anyway, I thought I'd take a look at Liteswap's startgbpvr to see how he monitored and controlled gbpvr. This lead me to Autoit and after hacking around Liteswaps code, I turned it into a program that checks every 60secs to see if the recording service is running. If it isn't it starts it and writes a message to my log file.

This is my first ever autoit script and there is no way I would have figured out what I was doing without using startgbvr as a basis, so thanks Liteswap.

I haven't included an .exe as I doubt anyone else writes to r:\temp\syslog.txt. If anyone else is interested, I could to a version that writes to a more common log or no log at all.

Changes:
2.8 Check to see if gbpvr has failed to start correctly.
If gbpvr is running but there is not window to activate then gbpvr must have barfed, probably due to the error
'Your system does not support the required VMR9 video renderer'
In this instance, gbpvr is killed and restarted.

2.9 Added writetolog funtion to tidy up code
Write message to log indicating what power mode the PC is entering/resuming from.

[update] August 2008
2.91 Don't kill gbpvr processes (with no active window) if file $EPGUpdate exists
So in your EPG update script, get it to create the file defined by $EPGUpdate before updating the EPG
and remove it once EPG update is complete.

[update] Oct 2009
$Delay_before_checking_IR_running = 3000
I am currently running with this setting at 3000 rather than 8000 in the script. This makes the script quicker at detecting ir.exe failure whilst still giving it process a chane to start up correctly
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#2
2007-03-30, 06:07 PM
Thank you too!

You could use a commandline parameter to set the logfile location (see the code in StartGBPVR for a template).
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

FirstTeamOPS
Offline

Member

Posts: 245
Threads: 21
Joined: Mar 2006
#3
2007-04-12, 12:40 AM
Slimm GB-PVR also monitors for a crashed recording service
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#4
2007-04-12, 02:53 PM
Nice one gEd.

The bit of code that baffled you maximises GB-PVR using emulated keystrokes rather than doing it programatically. The reason I did it this way was because on my dual screen nVidia-driven display, GB-PVR maximised in the usual manner still leaves a two-pixel border around the app. Restoring the app then maximising it again (keystrokes alt-space, r, alt-space, x) gets rid of this, so that's what the keystrokes do.

It's clunky but it works...
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

jonb1974
Offline

Member

Posts: 104
Threads: 20
Joined: Jan 2006
#5
2007-04-14, 06:33 PM
Why not just configure the windows service so it auto restarts if it stops?
[SIZE="1"]Windows XP SP2 | Gigabyte GA-MA78GM-S2H 780G | ATI Radeon HD3200 (HDMI Out) | AMD Athlon 64 X2 6400+ (3.2 GHz) | 1TB Hard Drive | 2GB RAM
[/SIZE]
gEd
Offline

Posting Freak

London
Posts: 3,518
Threads: 100
Joined: Jan 2005
#6
2007-04-14, 07:29 PM
that's a good point although the new version of this script also ensures that ir.exe and gbpvr are always running IF I want them to.

Also, I could envisage problems auto-restarting the service when installing plugins & updates.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
liteswap
Offline

Senior Member

Posts: 713
Threads: 70
Joined: Aug 2006
#7
2007-04-15, 09:14 PM
Must admit I've not been tempted to add a recording service restart to StartGBPVR for exactly the reason jonb1974 suggests: Windows already does this job.
- Silent client PVR: HDPlex HS.1 aluminium fanless case / Thin-ITX ASRock H81TM-ITX motherboard / Intel Celeron 1850T CPU / 4GB RAM / 120GB SSD / TBS6982 DBS-S2 [SIZE=1]dual-tuner card / Win10+nPVR+Plex Media Player feeding LG OLED55B6V + Anthem MRX510 AV Receiver / PMC GB1 / B&W / REL speakers.
- Noisy NAS: Xeon / Intel mobo / 16GB RAM / FreeNAS + Ubuntu VMs on VMware ESXi + 12TB RAID
[/SIZE] running Plex Media Server

mmatheny
Offline

Senior Member

Posts: 732
Threads: 113
Joined: May 2006
#8
2007-04-16, 12:14 AM
Yeah, but it only does it 3 times!
Mike

PVRX2 1.3.11
Community Skin 3.2.4
Community Skin Plugin 3.2.2
Win7 RTM 7600 x32
Comcast Houston (cable co)
ECS 7050M-M2 V2
AMD Phenom 9550 QuadCore
4G RAM
BFG GeForce 9600GT 512mb
160g SATA II (OS)
500g SATA II (DATA)
LG GGC-H20LK Combo drive
Hauppauge WinTV HVR-2250
JVC RX-9010 RX
Samsung PN50A550
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#9
2007-04-16, 07:53 AM
mmatheny Wrote:Yeah, but it only does it 3 times!

nope: you can define 3 different actions to take on the 1. failure / 2. failure & any subsequent failure ;-)
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
-Oz-
Offline

Posting Freak

Posts: 803
Threads: 33
Joined: Aug 2006
#10
2007-05-02, 01:42 PM
how?

never matter to me till the recording service wasn't running on the evening with a lot of recordings.
Dan Blomberg
[SIZE="1"]HTPC 1: MSI K8NGM2-FID, AMD 64 3000+, WD 200gb HDD, 1gb ram, NSK2400, PVR-500, Harmony 659
HTPC 2: ASUS M2NPV-VM, AMD 64 3200+, WD 250gb HDD, 1gb ram, nVidia DualTV MCE, NSK2400, Harmony 720
HTPC 3: GIGABYTE GA-E7AUM-DS2H GeForce 9400, Intel E5200 Wolfdale, WD 640gb HDD, 4gb ram, Antec Fusion 2, HVR-1600, hdhomerun, Harmony 880, PCH A-110
GBPVR 1.4.7 Additions: Weather2, UltraXMLTV, Comskip
Project: Setup Logitech Harmony Remote[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (8): 1 2 3 4 5 … 8 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Auto loader for DirectVobSub (Blu-ray Forced subtitles) whurlston 63 30,059 2015-05-14, 08:41 AM
Last Post: Lao Pan
  NextPVR UI Web Service bgowland 2 2,873 2012-02-01, 07:12 PM
Last Post: pBS
  Windows Desktop/Sidebar Gadget with Recording Schedule cncb 0 1,873 2011-09-29, 12:49 PM
Last Post: cncb
  MpegImport utility added to wiki sixgun 66 23,473 2010-05-25, 01:48 PM
Last Post: carpeVideo
  Enhanced Web Admin (EWA) Build 81 BETA Web Service Release UncleJohnsBand 0 1,410 2009-05-22, 09:05 PM
Last Post: UncleJohnsBand
  Showname - Rename utility for GBPVR recordings Anthony 0 1,506 2009-03-05, 05:40 PM
Last Post: Anthony
  Utility to help with Channel Scanning timh 8 3,993 2009-02-09, 12:49 PM
Last Post: timh
  HVR 1300 Recording Quality Improvement garymeds 4 2,286 2008-07-02, 11:24 PM
Last Post: bunegg
  I-xmltv: TV Guide customization & Zap2It EPG utility. Jim_ 304 98,998 2007-09-18, 02:20 PM
Last Post: lrf2005
  File Renaming Utility: AddEpisode turkey 11 4,035 2007-04-30, 10:48 PM
Last Post: David

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode