django-orchestra-test/orchestra/management/commands/restartservices.py
2021-01-30 15:09:30 +01:00

11 lines
361 B
Python

from django.core.management.base import BaseCommand
from orchestra import settings
from orchestra.management.commands.startservices import ManageServiceCommand
class Command(ManageServiceCommand):
services = settings.ORCHESTRA_RESTART_SERVICES
action = 'restart'
help = 'Restart all related services. Usefull for reload configuration and files.'