mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-14 02:26:56 -07:00
Added systemd support to AUTOSTART
This commit is contained in:
parent
8b556f20f0
commit
3a8244306b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue