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

11 lines
361 B
Python
Raw Permalink Normal View History

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