Compare commits
No commits in common. "dev" and "main" have entirely different histories.
2 changed files with 1 additions and 15 deletions
|
@ -57,20 +57,6 @@ pub fn sent_signal( svwait_var: i32, verbose: i8, command: &str, mut sv: status_
|
|||
},
|
||||
"e" | "x" => {
|
||||
return misc::exit_verbose(sv.sent_signal(b"x"), verbose, svwait_var, sv);
|
||||
// TODO: Erreur quand le service est déjà exité, et que l'on essaie de le réexiter.
|
||||
// Solution: retirer le test "e" et "x" pour avant la création de l'objet.
|
||||
},
|
||||
"start" => {
|
||||
return misc::run_verbose(sv.sent_signal(b"u"), true, 1, svwait_var, sv);
|
||||
},
|
||||
"stop" => {
|
||||
return misc::run_verbose(sv.sent_signal(b"d"), false, 1, svwait_var, sv);
|
||||
},
|
||||
"reload" => {
|
||||
return misc::noexcept_verbose(sv.sent_signal(b"h"), 1, sv);
|
||||
},
|
||||
"restart" => {
|
||||
return misc::run_verbose(sv.sent_signal(b"tcu"), true, 1, svwait_var, sv);
|
||||
},
|
||||
other => {
|
||||
println!("Error, command {} not implemented.", other); // TODO : Put the real error
|
||||
|
|
|
@ -35,7 +35,7 @@ pub fn run_verbose(sent_signal: bool, expected: bool, verbose: i8, svwait_var: i
|
|||
if status == 1 {
|
||||
return 1;
|
||||
}
|
||||
if sv.is_up() == expected && sv.is_term() == false {
|
||||
if sv.is_up() == expected {
|
||||
println!("ok: {}", sv.get_status_string());
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue