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