def salt_api():
 import salt.utils.process
 salt.utils.process.notify_systemd()
 import salt.cli.api
 sapi = salt.cli.api.SaltAPI()
 sapi.start()

def salt_api ( ) : import salt . utils . process salt . utils . process . notify_systemd ( ) import salt . cli . api sapi = salt . cli . api . SaltAPI ( ) sapi . start ( )
the main function for salt-api .