MCPcopy
hub / github.com/saltstack/salt / shutdown

Method shutdown

salt/cli/api.py:53–63  ·  view source on GitHub ↗

If sub-classed, run any shutdown operations on this method.

(self, exitcode=0, exitmsg=None)

Source from the content-addressed store, hash-verified

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

Callers 9

test_start_shutdownFunction · 0.95
connectFunction · 0.45
connectFunction · 0.45
closeMethod · 0.45
closeMethod · 0.45
closeMethod · 0.45
runMethod · 0.45
runMethod · 0.45
targetsMethod · 0.45

Calls 1

infoMethod · 0.45

Tested by 1

test_start_shutdownFunction · 0.76