def uwsgi_service(command): """ Run a uWSGI service """ if not _uwsgi_is_installed(): fabric.api.warn(fabric.colors.yellow('uWSGI must be installed')) return service('uwsgi', command) uwsgi_message(command)
def apache_service(command): """ Run an apache service """ if not _apache_is_installed(): fabric.api.warn(fabric.colors.yellow('Apache must be installed')) return service('apache2',command) apache_message(command)
def nginx_service(command): """ Run a nginx service """ if not _nginx_is_installed(): fabric.api.warn(fabric.colors.yellow('Nginx must be installed')) return service('nginx', command) nginx_message(command)
def nginx_service(command): """ Run a nginx service """ if not _nginx_is_installed(): fabric.api.warn(fabric.colors.yellow('Nginx must be installed')) return service('nginx',command) nginx_message(command)
def mysql_restart(): """ Restart MySQL """ service("mysql", "restart")
def mysql_stop(): """ Stop MySQL """ service("mysql", "stop")
def mysql_start(): """ Start MySQL """ service("mysql", "start")
def mysql_restart(): """ Restart MySQL """ service('mysql','restart')
def mysql_stop(): """ Stop MySQL """ service('mysql','stop')
def mysql_start(): """ Start MySQL """ service('mysql','start')