Jump to content

how to define launch daemon so it restarts correctly?


dance4ever

Recommended Posts

dance4ever

Hi! In a different thread, I mentioned I have emby automatically starting on boot using launchd. I’ve been noticing the server dies and initially thought maybe it was seg faulting or something. I inspected the log files and noticed:

2020-10-07 02:41:14.355 Info App: Automatically restarting the system because it is idle and a restart is required.

it throws a few socket errors (which I don’t know if these are benign, I’ve attached the original log file), shuts down successfully and then it never comes back.

What are reasons an idle emby server requires a restart on its own?

Is there a different way to define my launch daemon so it is able to restart correctly on its own?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>Label</key>
        <string>media.emby.USER.plist</string>

        <key>UserName</key>
        <string>USER</string>

        <key>Program</key>
        <string>/Volumes/Apps/EmbyServer.app/Contents/MacOS/EmbyServer</string>

        <key>RunAtLoad</key>
        <true/>
</dict>
</plist>

I’m on macOS Catalina (10.15.6)

embyserver-63737635274.txt

Link to comment
Share on other sites

Quote

What are reasons an idle emby server requires a restart on its own?

Only is something needs to be updated, such as a plugin update that was downloaded.

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
×
×
  • Create New...