_supervisord 1.8 KB

1234567891011121314151617181920212223242526272829303132
  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. {--user,-u}"[run supervisord as this user]:USER:_users" \
  9. {--umask,-m}"[use this umask for daemon subprocess (default is 022)]" \
  10. {--directory,-d}"[directory to chdir to when daemonized]" \
  11. {--logfile,-l}"[use FILENAME as logfile path]:FILENAME:_files" \
  12. {--logfile_maxbytes,-y}"[use BYTES to limit the max size of logfile]" \
  13. {--logfile_backups,-z}"[number of backups to keep when max bytes reached]" \
  14. {--loglevel,-e}"[use LEVEL as log level (debug,info,warn,error,critical)]:level:->levels" \
  15. {--pidfile,-j}"[write a pid file for the daemon process to FILENAME]:FILENAME:_files" \
  16. {--identifier,-i}"[identifier used for this instance of supervisord]" \
  17. {--childlogdir,-q}"[the log directory for child process logs]:child log directory:_files -/" \
  18. {--nocleanup,-k}"[prevent the process from performing cleanup (removal of old automatic child log files) at startup.]" \
  19. {--minfds,-a}"[the minimum number of file descriptors for start success]" \
  20. {--strip_ansi,-t}"[strip ansi escape codes from process output]" \
  21. "--minprocs[the minimum number of processes available for start success]" \
  22. "--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')]" \
  23. "*::args:_gnu_generic"
  24. case $state in
  25. levels)
  26. levels=("debug" "info" "warn" "error" "critical")
  27. _describe -t levels 'supervisord levels' levels && return 0
  28. ;;
  29. esac