summary refs log tree commit diff
path: root/Completion/Cygwin/Command/_cygrunsrv
blob: 08c23058e1ce8ffd51c8ea848bad42c4acbb8db6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#compdef cygrunsrv cygrunsrv.exe
#Generated by Felix Rosencrantz

local context state line
typeset -A opt_args
_arguments  \
  '(--install -I)'{-I,--install}':Installes a new service named <svc_name>.:->svc_name' \
  '(--remove -R)'{-R,--remove}':Removes a service named <svc_name>.:->svc_name' \
  '(--start -S)'{-S,--start}':Starts a service named <svc_name>.:->svc_name' \
  '(--stop -E)'{-E,--stop}':Stops a service named <svc_name>.:->svc_name' \
  '(--path -p)'{-p,--path}':Application path which is run as a service.:->app_path' \
  '(--args -a)'{-a,--args}':Optional string with command line options which is given to the service application on startup.:->args' \
  '(--chdir -c)'{-c,--chdir}':Optional directory which will be used as working directory for the application.:_directories' \
  '(--env -e)'{-e,--env}':Optional environment strings which are added to the environment when service is started. You can add up to 255 environment strings using:->VAR=VALUE' \
  '(--disp -d)'{-d,--disp}':Optional string which contains the display name of the service. Defaults to service name.:->display_name' \
  '(--desc -f)'{-f,--desc}':Optional string which contains the service description.:->description' \
  "(--type -t)"{-t,--type}"[Optional start type of service. Defaults to 'auto'.]: :(auto manual)" \
  '(--user -u)'{-u,--user}':Optional user name to start service as. Defaults to SYSTEM account.:_users' \
  '(--passwd -w)'{-w,--passwd}':Optional password for user. Only needed if a user is given. If a user has an empty:->password' \
  '(--termsig -s)'{-s,--termsig}':Optional signal to send to service application when service is stopped. <signal> can be a number or a signal name such as HUP, INT, QUIT, etc. Default is TERM.:_signals' \
  '(--dep -y)'{-y,--dep}':Optional name of service that must be started:->svc_name2' \
  '(--stdin -0)'{-0,--stdin}':Optional input file used for stdin redirection. Default is /dev/null.:_files' \
  '(--stdout -1)'{-1,--stdout}':Optional output file used for stdout redirection. Default is /var/log/<svc_name>.log.:_files' \
  '(--stderr -2)'{-2,--stderr}':Optional output file used for stderr redirection. Default is /var/log/<svc_name>.log.:_files' \
  '(--shutdown -o)'{-o,--shutdown}'[Stop service application during system shutdown.]' \
  '(--help -h)'{-h,--help}'[print this help, then exit.]' \
  '(--version -v)'{-v,--version}'[print cygrunsrv program version number, then exit.]' \
  '*: :_files'  && return 0
            
case $state in
  "VAR=VALUE");;
  "app_path");;
  "args");;
  "description");;
  "display_name");;
  "password");;
  "svc_name");;
  "svc_name2");;
esac