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:
#!/bin/bash while [ 1 ] do nice -n 19 python server.py sleep 1 done
Well, I can’t seem to find /bin/bash in FreeBSD so that doesn’t work.
Any ideas? Consider that cron is not an option – allowed downtime is a few seconds.
/bin/sh almost certainly exists, but if you really need bash:
that should install bash in /usr/local/bin/bash i believe