Setting zma/zmc niceness

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
bodom
Posts: 9
Joined: Thu Feb 15, 2018 4:52 am

Setting zma/zmc niceness

Post by bodom » Thu Dec 27, 2018 12:19 am

Hi there,

I am running ZoneMinder in a non-dedicated server. The server is also performing other tasks… some of them may happen to interfere with ZoneMinder.

From my understanding, zma and amc are the components that really need to run in "real time". I would like to set their niceness to -10 or even -15… is there an option somewhere for that? I couldn't find it in the docs.

Edit: meanwhile, i'm using a script to renice processes every hour:

Code: Select all

#/bin/bash

PRI=-10

for MON in 1 2
do
        for CMD in zma zmc zmf
        do
                curl -s -XPOST -d "user=renicer&pass=readonly" "http://localhost/zm/api/monitors/daemonStatus/id:$MON/daemon:$CMD.json" | grep -oE 'pid\s*=\s*([0-9]+)' | sed -nE 's/pid\s*=\s*([0-9]+)/\1/pm' | xargs renice -n $PRI
        done
done

Post Reply

Who is online

Users browsing this forum: MJN and 1 guest