title: Infinite loop in FreeBSD
body: <p>I have a script that constantly segfaults - the problem that I can't solve as segfault is in python libxml bindings - didn't write those. Ok, so in Linux I used to run an inf.loop so that when script dies - it restarts, like so:</p>
  
  <pre><code>#!/bin/bash
  while [ 1 ]
  do
  nice -n 19 python server.py
  sleep 1
  done
  </code></pre>
  
  <p>Well, I can't seem to find /bin/bash in FreeBSD so that doesn't work. </p>
  
  <p>Any ideas? Consider that cron is not an option - allowed downtime is a few seconds.</p>