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.
This commit is contained in:
Guillaume Boudreau 2016-03-01 08:40:50 -05:00
commit ab740b9ead

View file

@ -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