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