Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 6 of 6) sorted by relevance

/DragonReach/src/executor/service_executor/
H A Dmod.rs61 .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 …]
/DragonReach/src/unit/service/
H A Dmod.rs185 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 …]
/DragonReach/src/manager/ctl_manager/
H A Dmod.rs27 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()
/DragonReach/src/task/cmdtask/
H A Dmod.rs11 pub cmd: Vec<String>, field
22 .args(&self.cmd) in spawn()
43 .args(&self.cmd) in no_spawn()
/DragonReach/src/systemctl/listener/
H A Dmod.rs78 Ok(cmd) => { in ctl_listen()
79 let _ = CtlManager::exec_ctl(cmd); in ctl_listen()
/DragonReach/src/parse/parse_util/
H A Dmod.rs511 let cmd = cmds[i]; in parse_cmd_task() localVariable
512 cmd_vec.push(String::from(cmd)); in parse_cmd_task()
515 cmd_task.cmd = cmd_vec; in parse_cmd_task()