NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Legacy (v4.x and earlier) v
« Previous 1 … 284 285 286 287 288 … 433 Next »
NPVRServiceControl.exe command-line options?

NPVRServiceControl.exe command-line options?
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#1
2011-08-01, 07:29 PM
Does anyone know the options you can use with NPVRServiceControl.exe? I want to stop and start the service at 3am every day in case it messes up as I came back from a trip and discovered my PC hadn't shutdown or recorded anything in 3 days as the service had locked up! Sad I have no anti-virus or firewall running and it's on Windows XP SP3. The machine is JUST used for NPVR so I don't care about security on it!

I can stop the service by just running it and start it again, but the problem is that it brings up a helpful dialog box telling me it has stopped the service. Is there a "silent" option? Otherwise, my only other options is to use taskill on it (a horrible way of doing things). It's obviously not a massive problem, but I was hoping there was already an easy solution. I already tried running it in the command-prompt with /? and help as options.

Thanks.
johnsonx42
Offline

Posting Freak

Posts: 7,298
Threads: 189
Joined: Sep 2008
#2
2011-08-01, 07:40 PM
I don't know if there's a silent option for that program, but you can just use:

net stop "NPVR Recording Service"
net start "NPVR Recording Service"
server: NextPVR 5.0.7/Win10 2004/64-bit/AMD A6-7400k/hvr-2250 & hvr-1250/Winegard Flatwave antenna/Schedules Direct
main client: NextPVR 5.0.7 Desktop Client; LG 50UH5500 WebOS 3.0 TV
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#3
2011-08-02, 08:39 AM
johnsonx42 Wrote:I don't know if there's a silent option for that program, but you can just use:

net stop "NPVR Recording Service"
net start "NPVR Recording Service"
Nice. Thanks. That works fine. It was too obvious for me to think of! Smile
irontam
Offline

Junior Member

Posts: 15
Threads: 7
Joined: May 2009
#4
2011-11-28, 10:07 AM
+1 Worked for me too, thanks.
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#5
2011-11-28, 11:43 AM
I have sorted my similar problems in two ways. First I reboot my server every day at 02:30 if its NOT making a recording at the time. I used Sub’s recently added switch on NScriptHelper.exe to detect if NPVR is busy then if it is check again every minute until it can reboot. The other thing I have done is to use the “Recovery” options on “NPVR Recording Service” found under Control Panel > Administrative Tools > Services. One of the options if the service fails is to “Run a Program” and my original plan was to “NpvrServiceControl.exe stop” then “NpvrServiceControl.exe start” in a batch file. However I found that selecting the “Restart the Service” worked just as well.
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#6
2011-11-28, 02:53 PM
jcjefferies Wrote:I have sorted my similar problems in two ways. First I reboot my server every day at 02:30 if its NOT making a recording at the time. I used Sub’s recently added switch on NScriptHelper.exe to detect if NPVR is busy then if it is check again every minute until it can reboot. The other thing I have done is to use the “Recovery” options on “NPVR Recording Service” found under Control Panel > Administrative Tools > Services. One of the options if the service fails is to “Run a Program” and my original plan was to “NpvrServiceControl.exe stop” then “NpvrServiceControl.exe start” in a batch file. However I found that selecting the “Restart the Service” worked just as well.
Yeah I have mine do all that too. I also have the service restart for the second failure too, then it gives up. Problem is, when it breaks, it doesn't actually crash, just freezes and refuses to record anymore so I'm pretty sure the service restart won't sort it (can't hurt though!). NPVR has got a bit unreliable recently. I hope the next version works better. I've lost far too many shows recently!
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#7
2011-11-30, 01:19 PM
I arrived home late yesterday evening to to find 4 "Failed" recordings from earlier in the evening. The first "Failed" recording ended with the "Taking far to long to stop" error which crashes Nrecord. As usual there was nothing wrong with this first failed recordings so changing its "Status" in the database from 3 to 2 enables it to become a normal recording. The next three recordings failed as NRecord was not running even though the Recovery option had been set to restart it. Starting the client when I arrived home woke the server using WOL and the NRecord recovery started. Recovery usually starts within a minute of NRecord failure but this is about the third time it has taken several hours to start. My original idea was to check if the NRecord process was running perhaps at wakeup or before recording started but Recovery seemed a better option.
TVHelp
Offline

Member

Posts: 84
Threads: 16
Joined: Sep 2011
#8
2012-11-02, 02:00 PM
jcjefferies Wrote:First I reboot my server every day at 02:30 if its NOT making a recording at the time. I used Sub’s recently added switch on NScriptHelper.exe to detect if NPVR is busy then if it is check again every minute until it can reboot.

Could you detail for me how you did this? The batch file I borrowed from the site is not working (NextPVR_BATs_v1.1)..

@echo off

echo.
echo Stopping NPVR service
net stop "NPVR Recording Service"

echo.
Echo waiting for 10 secs
PING 1.1.1.1 -n 1 -w 10000 >nul


echo.
echo starting NPVR service
net start "NPVR Recording Service"




All it does is shut down the service but never restarts it...Services recovery is already set and does not seem to work/help.
SANGER_A2
Offline

Member

Posts: 51
Threads: 8
Joined: Nov 2007
#9
2012-11-02, 03:48 PM
TVHelp Wrote:Could you detail for me how you did this? The batch file I borrowed from the site is not working (NextPVR_BATs_v1.1)..

@echo off

echo.
echo Stopping NPVR service
net stop "NPVR Recording Service"

echo.
Echo waiting for 10 secs
PING 1.1.1.1 -n 1 -w 10000 >nul


echo.
echo starting NPVR service
net start "NPVR Recording Service"




All it does is shut down the service but never restarts it...Services recovery is already set and does not seem to work/help.
The line that starts the service is below. It works for me. It's either a problem with your service or your permissions in Windows. I use MediaPortal now and it works much better.
Code:
net start "NPVR Recording Service
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Web URL Command Failure jcole998 2 1,177 2020-01-26, 06:27 PM
Last Post: jcole998
  cmd line update urls? pBS 0 1,196 2019-11-30, 11:05 AM
Last Post: pBS
  How to run recording service from command prompt? eastavin 4 1,965 2019-10-31, 01:38 PM
Last Post: eastavin
  4.2.2 STOP command wont work eastavin 35 9,874 2018-10-03, 06:52 AM
Last Post: sub
  Command line jcole998 7 2,377 2018-08-29, 05:29 PM
Last Post: mvallevand
  -direct command line option jcole998 12 3,888 2018-03-25, 06:36 PM
Last Post: sub
  No decoders showing up in NextPVR decoder options PhantomF 2 2,557 2017-11-10, 05:18 PM
Last Post: PhantomF
  Rendering of text in TV Guide and Recordings main-menu options martinu 1 1,180 2017-09-20, 04:35 PM
Last Post: sub
  Empty command prompt window ozzzy 6 2,119 2017-03-14, 05:15 PM
Last Post: sub
  What, exactly, is Schedules Direct and what is the best line up for me? elsmandino 10 3,633 2016-10-25, 05:44 PM
Last Post: elsmandino

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

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

Linear Mode
Threaded Mode