On Thu, Apr 02, 2020 at 07:58:58PM +0200, intrigeri wrote: > /etc/default/tor also reads: > > # Note that this file is not being used for controlling Tor-startup > # when Tor is launched by systemd. > > So with systemd, I think you need to use LimitNICE= > (systemd.exec(5) manpage) in a drop-in override, > that you can generate for example with "systemctl edit".
I missed that note because in my system it was in the newer /etc/default/tor.dpkg-dist version that I had selected not to use in the latest upgrade. Thanks for pointing in the right direction, systemd. I got the NICE level set, so let's ducument it here for everybody to see: # systemctl edit tor@default.service (Note: editing tor.service does not work, I tried.) Text editor opens... put there: [Service] Nice=18 Save... it is saved as /etc/systemd/system/tor@default.service.d/override.conf Restart service: # systemctl restart tor@default.service or # service tor@default restart or # /etc/init.d/tor restart And the priority of the process is now lower (nice). -- Harri