If sub-classed, run any shutdown operations on this method.
(self, exitcode=0, exitmsg=None)
| 51 | self.api.run() |
| 52 | |
| 53 | def shutdown(self, exitcode=0, exitmsg=None): |
| 54 | """ |
| 55 | If sub-classed, run any shutdown operations on this method. |
| 56 | """ |
| 57 | log.info("The salt-api is shutting down..") |
| 58 | msg = "The salt-api is shutdown. " |
| 59 | if exitmsg is not None: |
| 60 | exitmsg = msg + exitmsg |
| 61 | else: |
| 62 | exitmsg = msg.strip() |
| 63 | super().shutdown(exitcode, exitmsg) |
| 64 | |
| 65 | def _handle_signals(self, signum, sigframe): |
| 66 | # escalate signal to the process manager processes |