if len(sys.argv) > 1 and sys.argv[1] in ['start', 'stop', 'restart', 'status']: