pms-docker/root/plex_service.sh
Nate b8f67a0b3c
Stop plex service with the s6 supervisor (#53)
S6 will now send SIGTERM to the root Plex process as a part of the service's finish script.  If the processes don't exit after 5 seconds, all processes are sent a SIGKILL
2020-05-28 07:59:48 -05:00

8 lines
139 B
Bash
Executable File

#!/bin/bash
if [ "$#" -eq 1 ]; then
s6-svc "$1" /var/run/s6/services/plex
else
echo "No argument supplied; must be -u, -d, or -r."
fi