From 3a8244306b4dfedbf6b7fb6ae660177d9a619135 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 27 Oct 2015 13:10:20 -0500 Subject: [PATCH] Added systemd support to AUTOSTART --- plexupdate.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plexupdate.sh b/plexupdate.sh index dc952f4..2d483ad 100755 --- a/plexupdate.sh +++ b/plexupdate.sh @@ -317,7 +317,12 @@ if [ "${AUTOSTART}" == "yes" ]; then if [ "${REDHAT}" == "no" ]; then echo "The AUTOSTART [-s] option may not be needed on your distribution." fi - service plexmediaserver start + # Check for systemd + if [ -f "/bin/systemctl" ]; then + systemctl start plexmediaserver.service + else + service plexmediaserver start + fi fi exit 0