Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


askelon

946 posts

Ultimate Geek
+1 received by user: 237

ID Verified

#262159 8-Jan-2020 11:13
Send private message

Im looking for something for Windows 10 to keep my installation of Jellyfin server running - it has a tendency to crash every few days without any real reason.  For some reason I cant get the advanced setup which allows it to run as as service to work correctly - it'll setup fine, run for a while then lock you out of the user login.

 

Ive tried a few programs that seem to have been around for a while but none seem to run all that well on Win10. I think most of the ones I have tried have had no active development in like forever.  Ive looked at a few from here but didnt find any that really just worked the way I want.  CRP just didnt run, ProcessAlive kept losing its settings every reboot (although it did work other than losing the settings), ReStartMe just threw up errors constantly, Srvman didnt seem to recognize the program was running and kept putting it into a stop/start loop.  

 

Any suggestions would be greatly appreciated!  


Create new topic
itxtme
2102 posts

Uber Geek
+1 received by user: 557


  #2387294 8-Jan-2020 11:55
Send private message

Create two Bat files and run them using Windows scheduler (do so with admin rights).  You could run this every 24 or 48 hours in the middle of the night.  It obviously doesnt know if the program stopped but you said it only fails after 3 days

 

Close the program

@echo off
cd "C:\Program Files (x86)\location-of-exe\"
timeout /T 5 /nobreak >nul
taskkill /IM programName.exe /F

 

 

 

Open the program

cd "C:\Program Files (x86)\location-of-exe\"
timeout /T 5 /nobreak >nul
Start "" /b programName.exe 




sampler
468 posts

Ultimate Geek
+1 received by user: 126

ID Verified
Trusted
Lifetime subscriber

  #2387297 8-Jan-2020 12:06
Send private message

Ive used ServerDoc in the past with great success. Has a free version to get you going .. if you want to check many items on a PC (or server) the pro version is not much per year and enables some really nice features (like remote restart/control of a service.

 

http://serverdoc.com

 

Cheers

 

Lee


TwoSeven
1721 posts

Uber Geek
+1 received by user: 304

Subscriber

  #2387304 8-Jan-2020 12:20
Send private message

If your app is creating an event in the event log when it crashes, I think one can set task scheduler to restart the app when the event occurs.  





Software Engineer
   (the practice of real science, engineering and management)
A.I.  (Automation rebranded)
Gender Neutral
   (a person who believes in equality and who does not believe in/use stereotypes. Examples such as gender, binary, nonbinary, male/female etc.)

 

 ...they/their/them...




xpd

xpd
Geek of Coastguard
14193 posts

Uber Geek
+1 received by user: 4659

Retired Mod
ID Verified
Trusted
Lifetime subscriber

  #2387308 8-Jan-2020 12:25
Send private message

I cant remember the name of it, but I was trialling a program that turned the exe into a "service", so then you treated it as a Windows Service - so could set the settings that if it died, to restart. Worked well for my needs at the time.

 

Theres a few variations out there, so Google "use program as a service" or similar.

 

 





XPD / Gavin

 

LinkTree

 

 

 


nathan
5695 posts

Uber Geek
+1 received by user: 1630
Inactive user


  #2387310 8-Jan-2020 12:37
Send private message

xpd:

 

I cant remember the name of it, but I was trialling a program that turned the exe into a "service", so then you treated it as a Windows Service - so could set the settings that if it died, to restart. Worked well for my needs at the time.

 

Theres a few variations out there, so Google "use program as a service" or similar.

 

 

 

 

probably Srvany


askelon

946 posts

Ultimate Geek
+1 received by user: 237

ID Verified

  #2387367 8-Jan-2020 13:50
Send private message

Thanks for the suggestions.  I'll see how it runs since reinstalling it today (wont know for a couple of days!). If that doesnt work I'll try srvany, if that doesnt work I can always schedule a restart of the computer more often.  Just ideally want something that will reload it fairly quickly if it stops.  


 
 
 
 

Shop now for Lenovo laptops and other devices (affiliate link).
Lias
5673 posts

Uber Geek
+1 received by user: 3990

ID Verified
Trusted
Lifetime subscriber

  #2387368 8-Jan-2020 13:51
Send private message




I'm a geek, a gamer, a dad, a Quic user, and an IT Professional. I have a full rack home lab, size 15 feet, an epic beard and Asperger's. I'm a bit of a Cypherpunk, who believes information wants to be free and the Net interprets censorship as damage and routes around it. If you use my Quic signup you can also use the code R570394EKGIZ8 for free setup. Opinions are my own and not the views of my employer.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.