(CommandList
  children: [
    (C {(set)} {(-e)})
    (AndOr children:[(C {(test)} {(-x)} {(/usr/sbin/sshd)})(C {(exit)} {(0)})] op_id:Op_DPipe)
    (AndOr
      children: [
        (Subshell
          children: [
            (Pipeline
              children: [
                (SimpleCommand
                  words: [{(/usr/sbin/sshd)} {(-) (EscapedLiteralPart token:<Lit_EscapedChar "\\?">)}]
                  redirects: [(Redirect op_id:Redir_GreatAnd arg_word:{(1)} fd:2 spids:[57])]
                )
                (C {(grep)} {(-q)} {(OpenSSH)})
              ]
              negated: False
            )
          ]
          redirects: [(Redirect op_id:Redir_Great arg_word:{(/dev/null)} fd:2 spids:[70])]
          spids: [50 68]
        )
        (C {(exit)} {(0)})
      ]
      op_id: Op_DPipe
    )
    (C {(umask)} {(022)})
    (If
      arms: [
        (if_arm
          cond: (Sentence command:(C {(test)} {(-f)} {(/etc/default/ssh)}) terminator:<Op_Semi ";">)
          action: (C {(.)} {(/etc/default/ssh)})
          spids: [-1 94]
        )
      ]
      spids: [-1 101]
    )
    (C {(.)} {(/lib/lsb/init-functions)})
    (If
      arms: [
        (if_arm
          cond: 
            (Sentence
              command: (C {(Lit_Other "[")} {(-n)} {(DQ ($ VSub_Number "$2"))} {(Lit_Other "]")})
              terminator: <Op_Semi ";">
            )
          action: 
            (Assignment
              keyword: Assign_None
              pairs: [
                (assign_pair
                  lhs: (LeftVar name:SSHD_OPTS)
                  rhs: {(DQ ($ VSub_Name "$SSHD_OPTS") (" ") ($ VSub_Number "$2"))}
                  spids: [125]
                )
              ]
              spids: [125]
            )
          spids: [-1 122]
        )
      ]
      spids: [-1 132]
    )
    (FuncDef
      name: run_by_init
      body: 
        (BraceGroup
          children: [
            (AndOr
              children: [
                (Subshell
                  children: [
                    (AndOr
                      children: [
                        (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$previous"))} {(Lit_Other "]")})
                        (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$runlevel"))} {(Lit_Other "]")})
                      ]
                      op_id: Op_DAmp
                    )
                  ]
                  spids: [145 163]
                )
                (C {(Lit_Other "[")} {(DQ ($ VSub_Name "$runlevel"))} {(Lit_Other "=")} {(S)} 
                  {(Lit_Other "]")}
                )
              ]
              op_id: Op_DPipe
            )
          ]
          spids: [142]
        )
      spids: [138 141]
    )
    (FuncDef
      name: check_for_upstart
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: (Sentence command:(C {(init_is_upstart)}) terminator:<Op_Semi ";">)
                  action: (C {(exit)} {($ VSub_Number "$1")})
                  spids: [-1 194]
                )
              ]
              spids: [-1 202]
            )
          ]
          spids: [186]
        )
      spids: [182 185]
    )
    (FuncDef
      name: check_for_no_start
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (C {(Lit_Other "[")} {(-e)} {(/etc/ssh/sshd_not_to_be_run)} {(Lit_Other "]")})
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (CommandList
                      children: [
                        (If
                          arms: [
                            (if_arm
                              cond: 
                                (Sentence
                                  command: 
                                    (C {(Lit_Other "[")} {(DQ ($ VSub_Number "$1"))} {(Lit_Other "=")} 
                                      {(log_end_msg)} {(Lit_Other "]")}
                                    )
                                  terminator: <Op_Semi ";">
                                )
                              action: 
                                (AndOr
                                  children: [(C {(log_end_msg)} {(0)}) (C {(true)})]
                                  op_id: Op_DPipe
                                )
                              spids: [-1 248]
                            )
                          ]
                          spids: [-1 260]
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: 
                                (Sentence
                                  command: (Pipeline children:[(C {(run_by_init)})] negated:True)
                                  terminator: <Op_Semi ";">
                                )
                              action: 
                                (AndOr
                                  children: [
                                    (C {(log_action_msg)} 
                                      {
                                        (DQ 
                                          (
"OpenBSD Secure Shell server not in use (/etc/ssh/sshd_not_to_be_run)"
                                          )
                                        )
                                      }
                                    )
                                    (C {(true)})
                                  ]
                                  op_id: Op_DPipe
                                )
                              spids: [-1 270]
                            )
                          ]
                          spids: [-1 284]
                        )
                        (C {(exit)} {(0)})
                      ]
                    )
                  spids: [-1 229]
                )
              ]
              spids: [-1 292]
            )
          ]
          spids: [211]
        )
      spids: [207 210]
    )
    (FuncDef
      name: check_dev_null
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-c)} {(/dev/null)} {(Lit_Other "]")})
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (CommandList
                      children: [
                        (If
                          arms: [
                            (if_arm
                              cond: 
                                (Sentence
                                  command: 
                                    (C {(Lit_Other "[")} {(DQ ($ VSub_Number "$1"))} {(Lit_Other "=")} 
                                      {(log_end_msg)} {(Lit_Other "]")}
                                    )
                                  terminator: <Op_Semi ";">
                                )
                              action: 
                                (AndOr
                                  children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                                  op_id: Op_DPipe
                                )
                              spids: [-1 335]
                            )
                          ]
                          spids: [-1 347]
                        )
                        (If
                          arms: [
                            (if_arm
                              cond: 
                                (Sentence
                                  command: (Pipeline children:[(C {(run_by_init)})] negated:True)
                                  terminator: <Op_Semi ";">
                                )
                              action: 
                                (AndOr
                                  children: [
                                    (C {(log_action_msg)} 
                                      {(DQ ("/dev/null is not a character device!"))}
                                    )
                                    (C {(true)})
                                  ]
                                  op_id: Op_DPipe
                                )
                              spids: [-1 357]
                            )
                          ]
                          spids: [-1 371]
                        )
                        (C {(exit)} {(1)})
                      ]
                    )
                  spids: [-1 317]
                )
              ]
              spids: [-1 379]
            )
          ]
          spids: [301]
        )
      spids: [297 300]
    )
    (FuncDef
      name: check_privsep_dir
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-d)} {(/var/run/sshd)} {(Lit_Other "]")})
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (CommandList
                      children: [
                        (C {(mkdir)} {(/var/run/sshd)})
                        (C {(chmod)} {(0755)} {(/var/run/sshd)})
                      ]
                    )
                  spids: [-1 408]
                )
              ]
              spids: [-1 423]
            )
          ]
          spids: [388]
        )
      spids: [384 387]
    )
    (FuncDef
      name: check_config
      body: 
        (BraceGroup
          children: [
            (If
              arms: [
                (if_arm
                  cond: 
                    (Sentence
                      command: 
                        (C {(Lit_Other "[")} {(KW_Bang "!")} {(-e)} {(/etc/ssh/sshd_not_to_be_run)} 
                          {(Lit_Other "]")}
                        )
                      terminator: <Op_Semi ";">
                    )
                  action: 
                    (AndOr
                      children: [
                        (C {(/usr/sbin/sshd)} {($ VSub_Name "$SSHD_OPTS")} {(-t)})
                        (C {(exit)} {(1)})
                      ]
                      op_id: Op_DPipe
                    )
                  spids: [-1 448]
                )
              ]
              spids: [-1 464]
            )
          ]
          spids: [432]
        )
      spids: [428 431]
    )
    (Assignment
      keyword: Assign_Export
      pairs: [
        (assign_pair
          lhs: (LeftVar name:PATH)
          rhs: 
            {
              (DQ 
                (BracedVarSub
                  token: <VSub_Name PATH>
                  suffix_op: (StringUnary op_id:VTest_ColonPlus arg_word:{($ VSub_Name "$PATH") (":")})
                  spids: [473 478]
                ) ("/usr/sbin:/sbin")
              )
            }
          spids: [471]
        )
      ]
      spids: [469]
    )
    (Case
      to_match: {(DQ ($ VSub_Number "$1"))}
      arms: [
        (case_arm
          pat_list: [{(start)}]
          action: 
            (CommandList
              children: [
                (C {(check_for_upstart)} {(1)})
                (C {(check_privsep_dir)})
                (C {(check_for_no_start)})
                (C {(check_dev_null)})
                (AndOr
                  children: [
                    (C {(log_daemon_msg)} {(DQ ("Starting OpenBSD Secure Shell server"))} {(DQ (sshd))})
                    (C {(true)})
                  ]
                  op_id: Op_DPipe
                )
                (If
                  arms: [
                    (if_arm
                      cond: 
                        (Sentence
                          command: 
                            (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--oknodo)} {(--pidfile)} 
                              {(/var/run/sshd.pid)} {(--exec)} {(/usr/sbin/sshd)} {(--)} {($ VSub_Name "$SSHD_OPTS")}
                            )
                          terminator: <Op_Semi ";">
                        )
                      action: (AndOr children:[(C {(log_end_msg)} {(0)})(C {(true)})] op_id:Op_DPipe)
                      spids: [-1 548]
                    )
                  ]
                  else_action: 
                    (AndOr
                      children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                      op_id: Op_DPipe
                    )
                  spids: [560 572]
                )
              ]
            )
          spids: [492 493 575 -1]
        )
        (case_arm
          pat_list: [{(stop)}]
          action: 
            (CommandList
              children: [
                (C {(check_for_upstart)} {(0)})
                (AndOr
                  children: [
                    (C {(log_daemon_msg)} {(DQ ("Stopping OpenBSD Secure Shell server"))} {(DQ (sshd))})
                    (C {(true)})
                  ]
                  op_id: Op_DPipe
                )
                (If
                  arms: [
                    (if_arm
                      cond: 
                        (Sentence
                          command: 
                            (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--oknodo)} {(--pidfile)} 
                              {(/var/run/sshd.pid)}
                            )
                          terminator: <Op_Semi ";">
                        )
                      action: (AndOr children:[(C {(log_end_msg)} {(0)})(C {(true)})] op_id:Op_DPipe)
                      spids: [-1 617]
                    )
                  ]
                  else_action: 
                    (AndOr
                      children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                      op_id: Op_DPipe
                    )
                  spids: [629 641]
                )
              ]
            )
          spids: [578 579 644 -1]
        )
        (case_arm
          pat_list: [{(reload)} {(force-reload)}]
          action: 
            (CommandList
              children: [
                (C {(check_for_upstart)} {(1)})
                (C {(check_for_no_start)})
                (C {(check_config)})
                (AndOr
                  children: [
                    (C {(log_daemon_msg)} 
                      {(DQ ("Reloading OpenBSD Secure Shell server's configuration"))} {(DQ (sshd))}
                    )
                    (C {(true)})
                  ]
                  op_id: Op_DPipe
                )
                (If
                  arms: [
                    (if_arm
                      cond: 
                        (Sentence
                          command: 
                            (C {(start-stop-daemon)} {(--stop)} {(--signal)} {(1)} {(--quiet)} {(--oknodo)} 
                              {(--pidfile)} {(/var/run/sshd.pid)} {(--exec)} {(/usr/sbin/sshd)}
                            )
                          terminator: <Op_Semi ";">
                        )
                      action: (AndOr children:[(C {(log_end_msg)} {(0)})(C {(true)})] op_id:Op_DPipe)
                      spids: [-1 703]
                    )
                  ]
                  else_action: 
                    (AndOr
                      children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                      op_id: Op_DPipe
                    )
                  spids: [715 727]
                )
              ]
            )
          spids: [648 651 730 -1]
        )
        (case_arm
          pat_list: [{(restart)}]
          action: 
            (CommandList
              children: [
                (C {(check_for_upstart)} {(1)})
                (C {(check_privsep_dir)})
                (C {(check_config)})
                (AndOr
                  children: [
                    (C {(log_daemon_msg)} {(DQ ("Restarting OpenBSD Secure Shell server"))} {(DQ (sshd))})
                    (C {(true)})
                  ]
                  op_id: Op_DPipe
                )
                (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--oknodo)} {(--retry)} {(30)} 
                  {(--pidfile)} {(/var/run/sshd.pid)}
                )
                (C {(check_for_no_start)} {(log_end_msg)})
                (C {(check_dev_null)} {(log_end_msg)})
                (If
                  arms: [
                    (if_arm
                      cond: 
                        (Sentence
                          command: 
                            (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--oknodo)} {(--pidfile)} 
                              {(/var/run/sshd.pid)} {(--exec)} {(/usr/sbin/sshd)} {(--)} {($ VSub_Name "$SSHD_OPTS")}
                            )
                          terminator: <Op_Semi ";">
                        )
                      action: (AndOr children:[(C {(log_end_msg)} {(0)})(C {(true)})] op_id:Op_DPipe)
                      spids: [-1 814]
                    )
                  ]
                  else_action: 
                    (AndOr
                      children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                      op_id: Op_DPipe
                    )
                  spids: [826 838]
                )
              ]
            )
          spids: [734 735 841 -1]
        )
        (case_arm
          pat_list: [{(try-restart)}]
          action: 
            (CommandList
              children: [
                (C {(check_for_upstart)} {(1)})
                (C {(check_privsep_dir)})
                (C {(check_config)})
                (AndOr
                  children: [
                    (C {(log_daemon_msg)} {(DQ ("Restarting OpenBSD Secure Shell server"))} {(DQ (sshd))})
                    (C {(true)})
                  ]
                  op_id: Op_DPipe
                )
                (Assignment
                  keyword: Assign_None
                  pairs: [(assign_pair lhs:(LeftVar name:RET) rhs:{(0)} spids:[875])]
                  spids: [875]
                )
                (AndOr
                  children: [
                    (C {(start-stop-daemon)} {(--stop)} {(--quiet)} {(--retry)} {(30)} {(--pidfile)} 
                      {(/var/run/sshd.pid)}
                    )
                    (Assignment
                      keyword: Assign_None
                      pairs: [
                        (assign_pair
                          lhs: (LeftVar name:RET)
                          rhs: {(DQ ($ VSub_QMark "$?"))}
                          spids: [895]
                        )
                      ]
                      spids: [895]
                    )
                  ]
                  op_id: Op_DPipe
                )
                (Case
                  to_match: {($ VSub_Name "$RET")}
                  arms: [
                    (case_arm
                      pat_list: [{(0)}]
                      action: 
                        (CommandList
                          children: [
                            (C {(check_for_no_start)} {(log_end_msg)})
                            (C {(check_dev_null)} {(log_end_msg)})
                            (If
                              arms: [
                                (if_arm
                                  cond: 
                                    (Sentence
                                      command: 
                                        (C {(start-stop-daemon)} {(--start)} {(--quiet)} {(--oknodo)} 
                                          {(--pidfile)} {(/var/run/sshd.pid)} {(--exec)} {(/usr/sbin/sshd)} {(--)} {($ VSub_Name "$SSHD_OPTS")}
                                        )
                                      terminator: <Op_Semi ";">
                                    )
                                  action: 
                                    (AndOr
                                      children: [(C {(log_end_msg)} {(0)}) (C {(true)})]
                                      op_id: Op_DPipe
                                    )
                                  spids: [-1 949]
                                )
                              ]
                              else_action: 
                                (AndOr
                                  children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                                  op_id: Op_DPipe
                                )
                              spids: [961 973]
                            )
                          ]
                        )
                      spids: [908 909 976 -1]
                    )
                    (case_arm
                      pat_list: [{(1)}]
                      action: 
                        (CommandList
                          children: [
                            (AndOr
                              children: [(C {(log_progress_msg)} {(DQ ("(not running)"))}) (C {(true)})]
                              op_id: Op_DPipe
                            )
                            (AndOr
                              children: [(C {(log_end_msg)} {(0)}) (C {(true)})]
                              op_id: Op_DPipe
                            )
                          ]
                        )
                      spids: [979 980 1007 -1]
                    )
                    (case_arm
                      pat_list: [{(Lit_Other "*")}]
                      action: 
                        (CommandList
                          children: [
                            (AndOr
                              children: [
                                (C {(log_progress_msg)} {(DQ ("(failed to stop)"))})
                                (C {(true)})
                              ]
                              op_id: Op_DPipe
                            )
                            (AndOr
                              children: [(C {(log_end_msg)} {(1)}) (C {(true)})]
                              op_id: Op_DPipe
                            )
                          ]
                        )
                      spids: [1010 1011 1038 -1]
                    )
                  ]
                  spids: [901 905 1041]
                )
              ]
            )
          spids: [845 846 1044 -1]
        )
        (case_arm
          pat_list: [{(status)}]
          action: 
            (CommandList
              children: [
                (C {(check_for_upstart)} {(1)})
                (AndOr
                  children: [
                    (C {(status_of_proc)} {(-p)} {(/var/run/sshd.pid)} {(/usr/sbin/sshd)} {(sshd)})
                    (AndOr
                      children: [(C {(exit)} {(0)}) (C {(exit)} {($ VSub_QMark "$?")})]
                      op_id: Op_DPipe
                    )
                  ]
                  op_id: Op_DAmp
                )
              ]
            )
          spids: [1048 1049 1080 -1]
        )
        (case_arm
          pat_list: [{(Lit_Other "*")}]
          action: 
            (CommandList
              children: [
                (AndOr
                  children: [
                    (C {(log_action_msg)} 
                      {
                        (DQ 
                          (
"Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart|try-restart|status}"
                          )
                        )
                      }
                    )
                    (C {(true)})
                  ]
                  op_id: Op_DPipe
                )
                (C {(exit)} {(1)})
              ]
            )
          spids: [1084 1085 -1 1103]
        )
      ]
      spids: [483 489 1103]
    )
    (C {(exit)} {(0)})
  ]
)