# Server Maintenance & Notification

**URL:** <https://forums.plex.tv/t/server-maintenance-notification/804755>\
**Category:** Feature Suggestions\
**Tags:** server-windows\
**Created:** [August 16, 2022, 10:51pm UTC](https://forums.plex.tv/t/server-maintenance-notification/804755 "2022-08-16T22:51:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nurbles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nurbles/32/244454_2.png) [@nurbles](https://forums.plex.tv/u/nurbles)\
**Post date:** [August 16, 2022, 10:51pm UTC](https://forums.plex.tv/t/server-maintenance-notification/804755/1 "2022-08-16T22:51:10Z")

</div>

From time to time, I wish I could tell my Plex server to tell new user connections that it is down for maintenance, and automatically shut down once there nothing being played. Once down, the redirection service (my words for whatever connects outside users to the Plex server in my home) could continue to inform new user connections that the server is down for maintenance. This is different from a server that goes down due to a power or internet outage (and different from a server that is going down permanently, but none of us want _that_!)

I’ve seen some old (and closed) suggestions very similar to this that generally have someone asking, “Isn’t that what email is for?” I suppose, for those of you with your cell phone grafted to your hands and who always check you email any time your attention isn’t on some other shiny object, that’s great, But if I’m watching a TV show and feel like streaming the next episode, I’m **highly unlikely** to run into my computer room to check my email to see if my friend’s plex server is going to go down soon!

On the other hand, if my plex player displays a message that the server will be unavailable for a while due to maintenance after my show ends, I’d know immediately. This would prevent annoyed texts and emails from users to Plex Admins when they cannot access their favorite shows. 😄

This _seems_ like a simple function (from the outside) and as a programmer myself I know that the simplest seeming things are often the most complex to implement, so this may well be beyond the abilities of the Plex developers.

But I still have hope that this **extremely** useful, simple function will soon be part of the Plex server code.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [August 16, 2022, 11:05pm UTC](https://forums.plex.tv/t/server-maintenance-notification/804755/2 "2022-08-16T23:05:27Z")

</div>

There’s an existing and rather popular feature suggestion thread discussing an option to send server messages to users. I suggest you comment/vote in that thread in order to avoid distracting or cannibalizing votes.

The closed suggestions you found should already be pointing to that thread – if they don’t, please let me know.

> [@Send server messages](https://forums.plex.tv/t/send-server-messages/23773):
>
> It would be great as a PlexPass user to unlock a feature to send messages to the viewers. Information on planned maintenance (running every 20min or so) Restart information (one time message) and so on. This would be nice to have when you have a shared server. Vote on the poll, and maybe give a comment in suggestions to make this feature request better. Best regards Sleepwalker

# 

Unless I’m missing some unique aspect of your suggestion, I’ll close this thread as a duplicate.

---

<div class="post-metadata">

**Author:** ![nurbles](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/nurbles/32/244454_2.png) [@nurbles](https://forums.plex.tv/u/nurbles)\
**Post date:** [August 17, 2022, 12:21am UTC](https://forums.plex.tv/t/server-maintenance-notification/804755/3 "2022-08-17T00:21:58Z")

</div>

Thanks @tom80H , I did as you said, though when I discovered that the thread is **ten years old** I kinda lost hope that Plex would ever bother to implement the suggestion. Apparently votes don’t count as much as what is easy or, more likely, “fun & cool.” Sigh.

---

<div class="post-metadata">

**Author:** ![CapMarkoRamius](https://avatars.discourse-cdn.com/v4/letter/c/5e9695/32.png) [@CapMarkoRamius](https://forums.plex.tv/u/CapMarkoRamius)\
**Post date:** [August 17, 2022, 12:28am UTC](https://forums.plex.tv/t/server-maintenance-notification/804755/4 "2022-08-17T00:28:26Z")

</div>

I use the following through the Tautulli API as part of my automated backup Powershell process. It’ll end all active streaming and display a specific message to your users. It won’t help if they try to access the server while it’s already down, though.

```auto
LogMessage "Tautulli - Query for Running Stream Sessions"
$tautullisessions
try {
	$tautullisessions = (Invoke-WebRequest -Uri "http://Precious:8181/api/v2?apikey=XXXXX&cmd=get_activity" | ConvertFrom-Json | Select-Object).response.data.sessions
	
	LogMessage (Indent ("Tautulli Sessions Detected: " + ($tautullisessions).Count))
	foreach($tautullisession in $tautullisessions)
	{		
		$result = (Invoke-WebRequest -Uri ("http://Precious:8181/api/v2?apikey=XXXXX&cmd=terminate_session&session_key=" + $tautullisession.session_key + "&message=Automatic Backup - ETA 30 Minutes"))
		LogMessage (Indent("Ended session: " + $tautullisession.friendly_name + " / " + $tautullisession.full_title))
	}
	
}
catch
{
	LogMessage (Indent "Tautulli - Unable to query for sessions")
}

```

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [August 17, 2022, 10:41pm UTC](https://forums.plex.tv/t/server-maintenance-notification/804755/5 "2022-08-17T22:41:13Z")

</div>

2022 clean-up: duplicate
