Jump to content

Search the Community

Showing results for tags 'Keep Running'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements
    • Emby Premiere Purchase/Subscription Support
    • Feature Requests
    • Tutorials and Guides
  • Emby Server
    • General/Windows
    • Android Server
    • Asustor
    • FreeBSD
    • Linux
    • NetGear ReadyNAS
    • MacOS
    • QNAP
    • Synology
    • TerraMaster NAS
    • Thecus
    • Western Digital
    • DLNA
    • Live TV
  • Emby Apps
    • Amazon Alexa
    • Android Mobile
    • Android TV / Fire TV
    • Emby Theater
    • iOS
    • Apple TV
    • Kodi
    • Raspberry Pi
    • Roku
    • Samsung Smart TV
    • Sony PlayStation
    • LG Smart TV
    • Web App
    • Windows Media Center
    • Plugins
  • Language-specific support
    • Arabic
    • Dutch
    • French
    • German
    • Italian
    • Portuguese
    • Russian
    • Spanish
    • Swedish
  • Community Contributions
    • Ember for Emby
    • Fan Art & Videos
    • Tools and Utilities
    • Web App CSS
  • Other
    • General Discussion
    • Developer API
    • Hardware
    • Media Clubs
    • Legacy Support

Blogs

  • Emby Blog

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. If you like me are running Emby Server on a Windows computer you know that it sometimes fails... if you like me sit in front of the TV with just a remote in your hand and want to watch your favorite show and Emby have failed, and in 99,9% of the time all you need to do is start it again you get somewhat annoyed. You can probably handle this a thousand ways but I wrote a small powershell script that checks if the website is responding, if it isn't stops the emby processes and starts them up again. I run this as a scheduled task and it have kept my Emby more up and running than before. I have tested this on a Windows 10 computer, I have no idea if this runs at all on any other version of Windows. I would guess that it does but you probably have to update Windows Powershell to use it. How to use it. Create a .ps1 textfile (Like C:\MyScripts\Emby-Monitor.ps1) with this content: $embywebsite = "http://localhost:8096" try{ $x=Invoke-RestMethod -Method Get -Uri $embywebsite -ea stop -TimeoutSec 5 } catch{ Write-EventLog -EntryType Error -LogName Application -Source “Emby-Monitor” -EventId 8096 -Message "Emby Website is DOWN - Shutdown and Startup again" Stop-Process -Name *Emby* -Force Start-Process $env:APPDATA\Emby-Server\system\EmbyServer.exe } You need to run the below command as an administrator once, this is to create the source for eventlog If you do not do this monitoring will still work but it wont write anything in the eventlog New-EventLog –LogName Application –Source “Emby-Monitor” Create a scheduled task that runs the scipt how ever often you like as the logged on user To test it simply exit Emby (taskbar icon, right click and exit) and run the scheduled task and Emby should start up again.
×
×
  • Create New...