Stop/start plex server on QNAP with QBOOST

Server Version#: latest on QNAP
Player Version#: latest on Apple TV

The plex server on my QNAP prevents the disks to spin down when the QNAP is idle. This is important to save some power during the times I usually do not use the plex server.
There is a tool named QBOOST, which is able to schedule apps on the QNAP to stop and start them at any time.
Setting the schedule in QBOOST is easy, the plex server stops at the scheduled time, but unfortunately it does not start anymore at the scheduled time.
Any hint, please? Is there anyone out there who uses QBOOST to schedule the plex server successfully?
Thanks!

You can always find Plex’s start/stop script in /etc/init.d/plex.sh

With PMS enabled in App Center:

  1. Start: /etc/init.d/plex.sh start
  2. Stop: /etc/init.d/plex.sh stop

Is this the mechanism you’re using?

I do not use any scripts, Qboost is doing it somehow in the background. I guess Qboost is doing it the same way as if you would click on the app and would chose stop or start, and in that case it might use exactly those scripts, but I do not know.
Did you try Qboost?

Yes, I tried Qboost. I have no access to any mechanism to start/stop Plex.

This is why I asked.
I am updating the unit now to FW 2055

It should work on older firmwares as well.
Try the following:
Start Qboost, by clicking on the robot on the desktop. That shows you memory, junk files and top 5 apps. Below the top 5 apps table click to the 3 dots, which shows an extended table with all apps and services. Scroll down to Plex. In that line is a calendar symbol, click on it. A weekly calendar appears, where you can enable the schedule and define times where the app should run and not run.

Thank you for pointing me to it.

Of all the internals I know, I hadn’t seen that feature.

I’ve set it to start at top of the hour. We’ll see what happens.

I set it to start at top of the hour.

It started.
It makes sense QNAP will use the official START/STOP mechanism
That’s what shows up in my log
Screenshot from 2022-08-11 02-12-40

[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # ps -ef | grep -i plex
14228 admin     28936 S   ./Plex Media Server
14919 admin     34904 S N Plex Plug-in [com.plexapp.system] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-52ca4217f/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.28.0.5973-52ca4217f /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-52ca4217f/System.bundle
15355 admin      3240 S   /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Plex Tuner Service /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Private /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Tuner/Shared 1.28.0.5973-52ca4217f 32600
15410 admin     34844 S   Plex Plug-in [com.plexapp.agents.imdb] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-52ca4217f/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.28.0.5973-52ca4217f /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-52ca4217f/PlexMovie.bundle
19151 admin       476 S   grep -i plex
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # date
Thu Aug 11 02:06:31 EDT 2022
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer] # 

If you start/stop/restart too fast, the sockets get hung up and need time to close on their own. (normal Linux behavior with CLOSE_WAIT status)

Normal CLOSE_WAIT maximum is 5 minutes

I used start an hour after stop, and it did not start. That it worked with you, shows at least, that it can work. I will check the logs and will try again, then will come back here. Thanks a lot so far…

Funny thing… I just did it again, stopping every day at 3am and starting every day at 4pm. Now it stopped as it should and it started again as scheduled. I will watch it another day and let you know then. No idea, what I did differently…

It does not work.
I configured to stop daily at 3am and to start at 4pm.
I did the configuration at about 3:30pm two days ago. I saw in the logfile, that plex stopped at about 3:30pm (when I was done with the configuration), and it started on the same day at 4pm, which I saw in the logfile as well.
It kind of stopped in the next night at 3pm, but it did not show anything in the logfile, it simply did not run. At and after 4pm it still did not run, so it did not start. I hoped, that a reboot of the NAS might work. So after the reboot, which was after 4pm, plex was running. But it stopped again running at 3am and never started again.
Any idea?