Lines Matching refs:command
7 /*! The launch_daemon's companion command line tool. */
278 fprintf(stderr, "Usage: %s <command>\n"
279 "Where <command> is one of:\n"
280 " list - Lists all jobs (the default command)\n"
282 "The following <command>s have a <name> argument:\n"
296 const char* command = "list";
317 command = argv[optind];
319 if (strcmp(command, "list") == 0) {
321 } else if (strcmp(command, "list-targets") == 0) {
323 } else if (strcmp(command, "log") == 0) {
326 // For convenience (the "info" command can be omitted)
327 get_info(command);
333 if (strcmp(command, "info") == 0) {
335 } else if (strcmp(command, "start") == 0) {
337 } else if (strcmp(command, "stop") == 0) {
339 } else if (strcmp(command, "restart") == 0) {
341 } else if (strcmp(command, "enable") == 0) {
343 } else if (strcmp(command, "disable") == 0) {
346 fprintf(stderr, "%s: Unknown command \"%s\".\n", kProgramName,
347 command);