/etc/turnoff.conf does not allow for processes with spaces

Bug #1397051 reported by Mike Lemberger
6
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_activity.py` and add a new line string delimiter to this code.

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

Tags: plex process
Revision history for this message
Pekka Jääskeläinen (pekka-jaaskelainen) wrote :

Thanks, committed!

Changed in turnoff:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.