Added systemd support for the AUTOSTART flag.

This commit is contained in:
Ian 2015-10-24 20:24:30 -05:00
commit 4dc13ae8d9

View file

@ -321,7 +321,11 @@ if [ "${AUTOSTART}" == "yes" ]; then
elif [ "${REDHAT}" == "no" ]; then elif [ "${REDHAT}" == "no" ]; then
echo "The AUTOSTART [-s] option may not be needed on your distribution." echo "The AUTOSTART [-s] option may not be needed on your distribution."
fi fi
if [ -f "/bin/systemctl" ]; then
sudo systemctl start plexmediaserver.service
else
sudo service plexmediaserver start sudo service plexmediaserver start
fi
fi fi
exit 0 exit 0