Below you will find pages that utilize the taxonomy term “Emby”
Using Systemd to automatically restart services
Recently I’ve been having a problem where the Emby server kept dying. I haven’t been able to figure out what is causing it. So while I’ve been trying to figure it out with the Emby folks, I fixed up the systemd script for Emby so that it would restart itself whenever it died. It was incredibly simple to do this. Here’s the original script:
[Unit]
Description=Emby Media Server
After=network.target
[Service]
EnvironmentFile=/etc/emby-server.conf
ExecStart=/usr/lib/emby-server/emby-server.sh start
Restart=on-abort
TimeoutSec=20
ExecStopPost=/usr/lib/emby-server/emby-server.sh clear
[Install]
WantedBy=multi-user.target
And here’s how I fixed it:
Throwing Emby into the mix
In my ideal home setup, I’d have computers in every room. I’m not horribly far off, but it’s mostly via old laptops and computers that I’ve retired from regular use or had donated from family members. As more of our movie purchases become BluRay (and with 4k video around the corner), some of those old computers just aren’t up to snuff when it comes to 720P and higher. I have a Roku 3 in the basement for running on the treadmill and that’s capable of handling higher quality video, but it’s not compatible with the way I’ve ripped my media. After a bit of investigation, it looked like Emby might be the right choice for me. So I installed it on the CentOS VM that runs my homeserver. The first thing I had to do to get it to work well was to change the Mono garbage collection.