title: How to autostart jobs when using zsh
body: <p>I switched to zsh for my daily usage recently. One problem that I come across is that how I can autostart some background command line executable(for example, <code>fetchmail -d 1800</code>). When I add the line into <code>~/.zprofile</code> or <code>~/.zshrc</code>, everything goes fine until I open another zsh process instance(in fact, I am using <code>tmux</code> so it happens frequently), fetchmail complains that</p>
  
  <pre><code>  fetchmail: can't accept options while a background fetchmail is running.
  </code></pre>
  
  <p>I thought that <code>~/.zprofile</code> might only be executed once, but It seems that I was wrong. So how can I handle it properly?</p>
  
  <p>Thanks.</p>