Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to change the RTPRIO limit of a process that's run at startup. I have found 3 ways to change process interactively:

  1. setrlimit
  2. ulimit
  3. /etc/security/limits.conf

However these only seem to effect local limits for one active login. How do I change them systemwide, so that a non-interactive process launched by systemd can see them?

share|improve this question
    
Update: If I have systemd start this process as "su root -d ./myprocess" it works correctly. Can someone explain to me WHY I have to do this? my init processes are all started as root regardless of if I use su or not, but su makes the difference in my process being able to make priority changes. Does su give me some different type of environment? –  Brandon Yates Feb 27 at 17:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.