title: Start background process from .bashrc
body: <p>I realize that this might be a stupid issue but I can't solve it for hours even if digged stackoverflow site and google throughly.</p>
  
  <p>Here is the base code in .bashrc to start gkrellm once I am logged into shell</p>
  
  <pre><code>if ps ax | grep -v grep | grep gkrellm &gt; /dev/null
  then
      echo "gkrellm is already running"
  else
      command gkrellm &amp;
  fi
  </code></pre>
  
  <p>I already used to try </p>
  
  <pre><code>...
  else
      nohup gkrellm &amp;
  fi
  ...
  </code></pre>
  
  <p>and </p>
  
  <pre><code>...
  else
      gkrellm
      $GK_PID=`pidof gkrellm`
      disown -h $GK_PID
  fi
  ...
  </code></pre>
  
  <p>gkrellm is properly put as background job and I can use shell (as expected). BUT I still have gkrellm exiting once I press Ctrl-c even if I start other apps from that same shell. How do I prevent gkrellm from closing on Ctrl-c press?</p>
  
  <p>Just in case. I am using PuTTY  clone called KiTTY but believe that's not it's issue.</p>
  
  <p>Thanks for help!</p>