Below you will find pages that utilize the taxonomy term “Systemd”
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:
What I learned while trying to diagnose a slow boot
I spent the weekend trying to figure out why SuperMario boots so slowly. I ended up overturning my ideas about what the problem was and learned a lot of new techniques. The only bad thing is that while I’m a lot closer to the problem, I’m still unsure of the root cause. So that the proper helpers can get credit, let me point you to the LinuxQuestions.org thread in which I worked this out. If you haven’t already clicked, don’t worry, I’m going to bring the relevant info over.