LSIO Start/Stop - updated path support

LSIO has multiple svc-plex pathnames.
This change adds support for /run/service/svc-plex.
This commit is contained in:
ChuckPa
2024-08-28 14:40:11 -04:00
parent 16d1807705
commit f4b987900a
3 changed files with 16 additions and 3 deletions

View File

@@ -2,12 +2,12 @@
#########################################################################
# Plex Media Server database check and repair utility script. #
# Maintainer: ChuckPa #
# Version: v1.07.00 #
# Date: 14-Jun-2024 #
# Version: v1.08.00 #
# Date: 28-Aug-2024 #
#########################################################################
# Version for display purposes
Version="v1.07.00"
Version="v1.08.00"
# Have the databases passed integrity checks
CheckedDB=0
@@ -657,6 +657,11 @@ HostConfig() {
StopCommand="s6-svc -d /var/run/service/svc-plex"
fi
if [ -d "/run/service/svc-plex" ]; then
HaveStartStop=1
StartCommand="s6-svc -u /run/service/svc-plex"
StopCommand="s6-svc -d /run/service/svc-plex"
if [ -d "/var/run/s6/services/plex" ]; then
HaveStartStop=1
StartCommand="s6-svc -u /var/run/s6/services/plex"