[Docs] Add back documentation of post-run hook retry behavior
This also went missing in but I missed it in my previous fixup
in
@@ -865,6 +865,8 @@ exec my_command --option {{cfg.option}} --option2 {{cfg.option2}}
#### post-run
File location: `<plan>/hooks/post-run`. The post run hook will get executed after initial startup. For many data services creation of specific users / roles or datastores is required. This needs to happen once the service has already started.
+The retry behavior of this hook is determined by its exit code. Exit code `0` indicates success, and the hook will not be run again. Any other exit code indicates failure and will initiate a retry. In the case of a retry, the `post-run` hook will immediately be executed again. Continually exit with a nonzero exit code to keep retrying the `post-run` hook. Regardless of the exit code, the Habitat service will continue running.
+
#### post-stop
File location: `<plan>/hooks/post-stop`. The post-stop hook will get executed after service has been stopped successfully. You may use this hook to undo what the `init` hook has done.
