%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/modules/ |
Current File : //usr/lib/python2.7/site-packages/salt/modules/uwsgi.pyo |
� ���^c @@ sP d Z d d l m Z m Z m Z d d l Z d d l Z d � Z d � Z d S( u� uWSGI stats server https://uwsgi-docs.readthedocs.io/en/latest/StatsServer.html :maintainer: Peter Baumgartner <pete@lincolnloop.com> :maturity: new :platform: all i ( t absolute_importt print_functiont unicode_literalsNc C@ s) d } t j j j | � r | St d f S( u4 Only load the module if uwsgi is installed u uwsgiuO The uwsgi execution module failed to load: the uwsgi binary is not in the path.( t saltt utilst patht whicht False( t cmd( ( s6 /usr/lib/python2.7/site-packages/salt/modules/uwsgi.pyt __virtual__ s c C@ sA d d d j | � g } t d | d t �} t j j j | � S( u# Return the data from `uwsgi --connect-and-read` as a dictionary. socket The socket the uWSGI stats server is listening on CLI Example: .. code-block:: bash salt '*' uwsgi.stats /var/run/mystatsserver.sock salt '*' uwsgi.stats 127.0.0.1:5050 u uwsgiu --connect-and-readu {0}u cmd.runt python_shell( t formatt __salt__R R R t jsont loads( t socketR t out( ( s6 /usr/lib/python2.7/site-packages/salt/modules/uwsgi.pyt stats s ( t __doc__t __future__R R R t salt.utils.jsonR t salt.utils.pathR R ( ( ( s6 /usr/lib/python2.7/site-packages/salt/modules/uwsgi.pyt <module> s