title: Launchctl Start Interval
body: <p>I know when using a plist in the launch daemons folder there is a key called <code>&lt;StartInterval&gt;</code>. I much prefer using <code>launchctl</code> when I can because it is a lot quicker then writing out a whole plist, but I have not been able to figure out how to get the process to restart after it has been killed. I have already read the man page and haven't found anything there. Is there a way? Typically I use the  following command:</p>
  
  <p><code>launchctl submit -l somename -p /path/to/script -o output.txt -e errors.txt</code></p>
  
  <p>But that will not restart the program if it is killed after any time interval.</p>