Skip to content

Freyr - Stops and never resumes #96

Answered by DcryptedCA
DcryptedCA asked this question in Q&A
Discussion options

You must be logged in to vote

I run this script every 5 minutes now (In user scripts / Unraid), it kills Freyr inside the Lidarr docker and continues it where it left off if stuck or if it never resumed. It is constant now!

#!/bin/bash

export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

# Find the container ID based on the container name 
container_name="lidarr"
container_id=$(docker ps -qf "name=$container_name")

# Check if container ID was found
if [ -z "$container_id" ]; then
    echo "Container with name '$container_name' not found."
    exit 1
fi

process_command="node /usr/local/bin/freyr"

# Find the PID of the process based on the command within the found container
pid=$(docker exec "$c…

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@DcryptedCA
Comment options

@DcryptedCA
Comment options

Comment options

You must be logged in to vote
1 reply
@RandomNinjaAtk
Comment options

Comment options

You must be logged in to vote
1 reply
@RandomNinjaAtk
Comment options

Comment options

You must be logged in to vote
1 reply
@DcryptedCA
Comment options

Answer selected by DcryptedCA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants