mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
8e47167638
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
16 lines
299 B
Bash
Executable File
16 lines
299 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 radarr..."
|
|
exec mono --debug /opt/radarr/Radarr.exe --no-browser -data=/config & wait
|
|
echo "Stopping radarr..."
|