def stop(self): """Stop the service.""" self.was_enabled = action_utils.webserver_is_enabled( self.web_name, kind=self.kind) if self.was_enabled: actions.superuser_run( 'apache', ['disable', '--name', self.web_name, '--kind', self.kind])
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.webserver_is_enabled('deluge-plinth') and action_utils.service_is_enabled('deluge-web'))
def is_enabled(): """Return whether the module is enabled.""" return action_utils.webserver_is_enabled('diaspora-plinth')
def is_enabled(): """Return whether the module is enabled.""" return action_utils.webserver_is_enabled('roundcube')
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.service_is_enabled(managed_services[0]) and action_utils.webserver_is_enabled('tahoe-plinth'))
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.service_is_enabled('transmission-daemon') and action_utils.webserver_is_enabled('transmission-plinth'))
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.service_is_enabled('ejabberd') and action_utils.webserver_is_enabled('jwchat-plinth'))
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.webserver_is_enabled('searx-freedombox') and os.path.exists('/etc/uwsgi/apps-enabled/searx.ini'))
def is_enabled(): """Return whether the module is enabled.""" return action_utils.webserver_is_enabled('ikiwiki-plinth')
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.webserver_is_enabled('cockpit-freedombox') and action_utils.service_is_running('cockpit.socket'))
def is_enabled(): """Return whether the module is enabled.""" return action_utils.webserver_is_enabled('gnu-social')
def is_enabled(self): """Return whether the Apache configuration is enabled.""" return action_utils.webserver_is_enabled(self.web_name, kind=self.kind)
def is_enabled(): """Return whether the module is enabled.""" return action_utils.service_is_enabled("ejabberd") and action_utils.webserver_is_enabled("jwchat-plinth")
def is_enabled(): """Return whether the module is enabled.""" return (action_utils.service_is_enabled('syncthing@syncthing') and action_utils.webserver_is_enabled('syncthing-plinth'))
def is_enabled(): """Return whether the module is enabled.""" return action_utils.webserver_is_enabled('shaarli')