mirror of
https://github.com/hassio-addons/addon-plex.git
synced 2025-05-07 04:01:28 +00:00
Remove stale plexmediaserver.pid on startup (#207)
This commit is contained in:
parent
9fd0712aa3
commit
cc930d99bc
1 changed files with 6 additions and 0 deletions
|
@ -12,5 +12,11 @@ export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6
|
|||
export PLEX_MEDIA_SERVER_INFO_DEVICE="Hass.io"
|
||||
export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/data
|
||||
|
||||
# Check if "/data/Plex Media Server/plexmediaserver.pid" exists, if so remove it
|
||||
if bashio::fs.file_exists '/data/Plex Media Server/plexmediaserver.pid'; then
|
||||
bashio::log.debug 'Removing stale PID file...'
|
||||
rm -f /data/Plex\ Media\ Server/plexmediaserver.pid
|
||||
fi
|
||||
|
||||
# Run the Plex Media Server
|
||||
exec /usr/lib/plexmediaserver/Plex\ Media\ Server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue