From ab740b9eada0b68d9981cca8534836dbd653a7b3 Mon Sep 17 00:00:00 2001 From: Guillaume Boudreau Date: Tue, 1 Mar 2016 08:40:50 -0500 Subject: [PATCH] Use absolute path to /sbin/service Sometimes, when using sudo or cron, /sbin might not be in the user's PATH, and thus we need to specify its full path when AUTOSTARTing it. --- plexupdate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index 6a448d2..4b00161 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -345,7 +345,7 @@ if [ "${AUTOSTART}" == "yes" ]; then if [ -f "/bin/systemctl" ]; then systemctl start plexmediaserver.service else - service plexmediaserver start + /sbin/service plexmediaserver start fi fi