django-orchestra/orchestra/management/commands/restartservices.py

12 lines
421 B
Python
Raw Normal View History

2014-05-08 16:59:35 +00:00
from django.core.management.base import BaseCommand
from orchestra.management.commands.startservices import ManageServiceCommand
from orchestra.settings import ORCHESTRA_RESTART_SERVICES
2014-05-08 16:59:35 +00:00
class Command(ManageServiceCommand):
services = ORCHESTRA_RESTART_SERVICES
2014-05-08 16:59:35 +00:00
action = 'restart'
option_list = BaseCommand.option_list
help = 'Restart all related services. Usefull for reload configuration and files.'