/etc/turnoff.conf does not allow for processes with spaces
Bug #1397051 reported by
Mike Lemberger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TurnOff |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Plex uses a process called "Plex New Transc" when an active Plex session is streaming. I wanted to prevent my system from shutting down while actively streaming but noticed when I added the task under the [process] section with `processes = Plex New Transc` (without the graves) turnoff would still shutdown.
The fix was to edit `process_
Before:
processes = run("ps -e -o comm=").split()
After:
processes = run("ps -e -o comm=").split('\n')
This resolved my issue. I wanted to share this so others could enjoy turnoff with Plex!
Thanks again for this script!
Mike
To post a comment you must log in.
Thanks, committed!