Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 3
0
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)
Ejemplo n.º 4
0
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)
Ejemplo n.º 5
0
def mysql_restart():
    """ Restart MySQL """
    service("mysql", "restart")
Ejemplo n.º 6
0
def mysql_stop():
    """ Stop MySQL """
    service("mysql", "stop")
Ejemplo n.º 7
0
def mysql_start():
    """ Start MySQL """
    service("mysql", "start")
Ejemplo n.º 8
0
def mysql_restart():
	""" Restart MySQL """
	service('mysql','restart')
Ejemplo n.º 9
0
def mysql_stop():
	""" Stop MySQL """
	service('mysql','stop')
Ejemplo n.º 10
0
def mysql_start():
	""" Start MySQL """
	service('mysql','start')