MCPcopy Create free account
hub / github.com/saltstack/salt / start

Method start

salt/cli/api.py:38–51  ·  view source on GitHub ↗

Start the actual master. If sub-classed, don't **ever** forget to run: super(YourSubClass, self).start() NOTE: Run any required code before calling `super()`.

(self)

Source from the content-addressed store, hash-verified

36 self.set_pidfile()
37
38 def start(self):
39 """
40 Start the actual master.
41
42 If sub-classed, don't **ever** forget to run:
43
44 super(YourSubClass, self).start()
45
46 NOTE: Run any required code before calling `super()`.
47 """
48 super().start()
49 if check_user(self.config["user"]):
50 log.info("The salt-api is starting up")
51 self.api.run()
52
53 def shutdown(self, exitcode=0, exitmsg=None):
54 """

Callers 15

salt_apiFunction · 0.95
test_start_shutdownFunction · 0.95
handle_sshMethod · 0.45
_prepare_settingsFunction · 0.45
_client_cmd_asFunction · 0.45
_get_zk_connFunction · 0.45
_getDataFromRegPolDataFunction · 0.45
run_profileMethod · 0.45
progress_iterFunction · 0.45
create_threadFunction · 0.45
handle_decoded_payloadFunction · 0.45

Calls 3

check_userFunction · 0.90
infoMethod · 0.45
runMethod · 0.45

Tested by 1

test_start_shutdownFunction · 0.76