docky crashes from time to time for me. How can I make it restart automatically after it crashed?
First off, I'm not using docky. But I'm assuming docky is in your $PATH. If not, then specify the full path to the binary.
Here is the awesome use of Bash:
Start off with a file, such as (vim instead of gedit if you want):
Now you can run a program like so:
and it'll launch the program once, and make sure to restart the program if you ever choose to quit it or it chooses to crash.
To add an entry to system startup so it launches the program once you logged in and won't stop until you quit, do this:
Make sure the new entry is checked. Log back out and in and you see docky all the time.