Example #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)
Example #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)
Example #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)
Example #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)
Example #5
0
def mysql_restart():
    """ Restart MySQL """
    service("mysql", "restart")
Example #6
0
def mysql_stop():
    """ Stop MySQL """
    service("mysql", "stop")
Example #7
0
def mysql_start():
    """ Start MySQL """
    service("mysql", "start")
Example #8
0
def mysql_restart():
	""" Restart MySQL """
	service('mysql','restart')
Example #9
0
def mysql_stop():
	""" Stop MySQL """
	service('mysql','stop')
Example #10
0
def mysql_start():
	""" Start MySQL """
	service('mysql','start')