Jump to content

Restart Emby Server - Scheduled Task


thekingswolf
 Share

Go to solution Solved by Luke,

Recommended Posts

Yeah. I don't know what happened to the original version of this.

EDIT: Actually... it might have been blocked. Should I have done this?

I recreated it, and it works now.

 

thumb.jpg.0ed3268dab75fa238b6b11186a32f7ca.jpg

 

restart.thumb.png.6cf768d7af2001177e7b54f851df6ff1.png

 

DOWNLOAD: Restart_v1.zip

 

I realize the built in emby version will only restart when updates are available.

But, this will restart the server no matter who is using it, every day at 3:45 am (default).

Is that what you guys wanted. It could check for users being connected before restarting, and then wait for the next appropriate time to do it...

Edited by chef
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Cheesegeezer
2 hours ago, chef said:

No! Something is absolutely wrong with this thing. 😆

It will not load cheese!

I updated all the nugets, added System.Memory, and the thing is broken somewhere.

I don't understand... 

🤦‍♂️ What is happening??

 

It is literally under a 1000 lines of code. 🤦‍♂️

Oh no! It’s the most simple thing ever. I hate stuff like this that has you chasing your tail for hours.

like escaping CLI args lol 😂 

yeah probably best to knock up a new one. I know you won’t need it but gimme a shout if you need anything.

ill take a look tomorrow anyways and see whats going on. 

Edited by Cheesegeezer
Link to comment
Share on other sites

Cheesegeezer
39 minutes ago, chef said:

Yeah. I don't know what happened to the original version of this.

EDIT: Actually... it might have been blocked. Should I have done this?

I recreated it, and it works now.

 

thumb.jpg.0ed3268dab75fa238b6b11186a32f7ca.jpg

 

restart.thumb.png.6cf768d7af2001177e7b54f851df6ff1.png

 

DOWNLOAD: Restart_v1.zip

 

I realize the built in emby version will only restart when updates are available.

But, this will restart the server no matter who is using it, every day at 3:45 am (default).

Is that what you guys wanted. It could check for users being connected before restarting, and then wait for the next appropriate time to do it...

Awesome dude!! 

Link to comment
Share on other sites

emby_fan

I can confirm it‘s loading for me as well :-))

Thank you so much.

Link to comment
Share on other sites

  • 4 weeks later...
why_god_why
On 7/23/2022 at 9:07 PM, chef said:

Yeah. I don't know what happened to the original version of this.

EDIT: Actually... it might have been blocked. Should I have done this?

I recreated it, and it works now.

 

thumb.jpg.0ed3268dab75fa238b6b11186a32f7ca.jpg

 

restart.thumb.png.6cf768d7af2001177e7b54f851df6ff1.png

 

DOWNLOAD: Restart_v1.zip

 

I realize the built in emby version will only restart when updates are available.

But, this will restart the server no matter who is using it, every day at 3:45 am (default).

Is that what you guys wanted. It could check for users being connected before restarting, and then wait for the next appropriate time to do it...

What happened to the zip file? I have the same need. Emby CPU continuously spikes to near 90% if someone is watching a movie and it bogs down my NAS until the service restarts. This would be very handy.

Link to comment
Share on other sites

On 24/07/2022 at 04:07, chef said:

Yeah. I don't know what happened to the original version of this.

EDIT: Actually... it might have been blocked. Should I have done this?

I recreated it, and it works now.

 

thumb.jpg.0ed3268dab75fa238b6b11186a32f7ca.jpg

 

restart.thumb.png.6cf768d7af2001177e7b54f851df6ff1.png

 

DOWNLOAD: Restart_v1.zip

 

I realize the built in emby version will only restart when updates are available.

But, this will restart the server no matter who is using it, every day at 3:45 am (default).

Is that what you guys wanted. It could check for users being connected before restarting, and then wait for the next appropriate time to do it...

Its in the thread :)

But here you go.

Link to comment
Share on other sites

Happy2Play

@why_god_why in the post quoted above, the same post Chef says he recreated it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...