Gracefully shutting down PMS from CLI

Server Version#: 1.31.1.6716

I have a small BAT file that puts my PMS machine to sleep with PSShutdown at night (1.00) and a setting in BIOS that wakes up the server at 9.00 AM.

Before putting the server to sleep, I terminate all the Plex processes with taskkill /t /f /im "Plex Media Server.exe" and it seems to work but I’m wondering if this is the right way.

I’ve noticed that when shutting down PMS from the tray icon, the WAL and SHM db files are deleted, but not when killing PMS from the command line.

When the PC wakes up in the morning, I’m seeing this in the PMS log

Feb 20, 2023 06:07:35.494 [8084] INFO - SQLITE3:0x7ff71fb092c0, 283, recovered 793 frames from WAL file E:\Plex\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db-wal
Feb 20, 2023 06:07:35.548 [8084] INFO - SQLITE3:0x7ff71fb092c0, 283, recovered 849 frames from WAL file E:\Plex\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.blobs.db-wal

Anything I should be worried about?

Many thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.