Searched refs:cmd (Results 1 – 6 of 6) sorted by relevance
61 .args(&exec_start.cmd) in exec_simple()113 for cmd in cmds { in exec_start_pos()114 cmd.spawn()?; in exec_start_pos()121 for cmd in cmds { in exec_start_pre()122 cmd.no_spawn()?; in exec_start_pre()130 for cmd in cmds { in exec_stop()131 cmd.no_spawn()?; in exec_stop()139 for cmd in cmds { in exec_stop_post()140 cmd.no_spawn()?; in exec_stop_post()147 for cmd in cmds { in exec_reload()[all …]
185 for cmd in part.exec_reload.iter_mut() { in init()186 cmd.dir = part.working_directory.to_string(); in init()187 cmd.envs = part.environment.clone(); in init()191 for cmd in part.exec_start_pos.iter_mut() { in init()192 cmd.dir = part.working_directory.to_string(); in init()193 cmd.envs = part.environment.clone(); in init()195 for cmd in part.exec_start_pre.iter_mut() { in init()196 cmd.dir = part.working_directory.to_string(); in init()197 cmd.envs = part.environment.clone(); in init()199 for cmd in part.exec_stop.iter_mut() { in init()[all …]
27 pub fn exec_ctl(cmd: Command) -> Result<(), RuntimeError> { in exec_ctl()29 match cmd.operation { in exec_ctl()30 CommandOperation::ListUnits => Self::list_unit(cmd.patterns), in exec_ctl()31 CommandOperation::Start => Self::start(cmd.args.unwrap()), in exec_ctl()32 CommandOperation::Restart => Self::restart(cmd.args.unwrap(), false), in exec_ctl()33 CommandOperation::Stop => Self::stop(cmd.args.unwrap()), in exec_ctl()38 CommandOperation::TryRestart => Self::restart(cmd.args.unwrap(), true), in exec_ctl()44 let mut patterns = cmd.patterns.clone(); in exec_ctl()49 let mut patterns = cmd.patterns.clone(); in exec_ctl()
11 pub cmd: Vec<String>, field22 .args(&self.cmd) in spawn()43 .args(&self.cmd) in no_spawn()
78 Ok(cmd) => { in ctl_listen()79 let _ = CtlManager::exec_ctl(cmd); in ctl_listen()
511 let cmd = cmds[i]; in parse_cmd_task() localVariable512 cmd_vec.push(String::from(cmd)); in parse_cmd_task()515 cmd_task.cmd = cmd_vec; in parse_cmd_task()