Esempio n. 1
0
 def is_enabled(self):
     """Return whether the uWSGI configuration is enabled."""
     return action_utils.uwsgi_is_enabled(self.uwsgi_name) \
         and action_utils.service_is_enabled('uwsgi')
Esempio n. 2
0
 def is_running(self):
     """Return whether the uWSGI daemon is running with configuration."""
     return action_utils.uwsgi_is_enabled(self.uwsgi_name) \
         and action_utils.service_is_running('uwsgi')