_supervisord 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. #compdef supervisord
  2. typeset -A opt_args
  3. local context state line
  4. _arguments \
  5. {--configuration,-c}"[configuration file]:FILENAME:_files" \
  6. {--nodaemon,-n}"[run in the foreground (same as 'nodaemon true' in config file)]" \
  7. {--help,-h}"[print this usage message and exit]:" \
  8. {--version,-v}"[print supervisord version number and exit]:" \
  9. {--user,-u}"[run supervisord as this user]:USER:_users" \
  10. {--umask,-m}"[use this umask for daemon subprocess (default is 022)]" \
  11. {--directory,-d}"[directory to chdir to when daemonized]" \
  12. {--logfile,-l}"[use FILENAME as logfile path]:FILENAME:_files" \
  13. {--logfile_maxbytes,-y}"[use BYTES to limit the max size of logfile]" \
  14. {--logfile_backups,-z}"[number of backups to keep when max bytes reached]" \
  15. {--loglevel,-e}"[use LEVEL as log level (debug,info,warn,error,critical)]:level:->levels" \
  16. {--pidfile,-j}"[write a pid file for the daemon process to FILENAME]:FILENAME:_files" \
  17. {--identifier,-i}"[identifier used for this instance of supervisord]" \
  18. {--childlogdir,-q}"[the log directory for child process logs]:child log directory:_files -/" \
  19. {--nocleanup,-k}"[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
  20. {--minfds,-a}"[the minimum number of file descriptors for start success]" \
  21. {--strip_ansi,-t}"[strip ansi escape codes from process output]" \
  22. "--minprocs[the minimum number of processes available for start success]" \
  23. "--profile_options[run supervisord under profiler and output results based on OPTIONS, which is a comma-sep'd list of 'cumulative', 'calls', and/or 'callers', e.g. 'cumulative,callers')]" \
  24. "*::args:_gnu_generic"
  25. case $state in
  26. levels)
  27. levels=("debug" "info" "warn" "error" "critical")
  28. _describe -t levels 'supervisord levels' levels && return 0
  29. ;;
  30. esac