I've edited my `rc.local` to start my python script when the Pi boots up (like [here](https://raspberrypi.stackexchange.com/a/19874/11608)).

How can it be done to restart the script automatically if it crashes? It would be best if a re-start would be logged somewhere.