1
0
mirror of https://github.com/jessfraz/dockerfiles.git synced 2025-04-02 10:20:43 +02:00
Jess Frazelle 8e47167638
add sonarr and radarr
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
2018-07-14 17:53:05 -04:00

16 lines
301 B
Bash
Executable File

#!/bin/bash
set -e
set -o pipefail
handle_signal() {
PID=$!
echo "Received signal. PID is ${PID}"
kill -s SIGHUP $PID
}
trap "handle_signal" SIGINT SIGTERM SIGHUP
echo "Starting sonarr..."
exec mono --debug /opt/sonarr/NzbDrone.exe --no-browser -data=/config & wait
echo "Stopping sonarr..."