mirror of
https://github.com/fastogt/fastocloud.git
synced 2025-03-09 23:18:50 +00:00
New protocol
This commit is contained in:
parent
1156584283
commit
9bbf38717a
33 changed files with 846 additions and 1321 deletions
|
|
@ -76,7 +76,7 @@ int main(int argc, char** argv, char** envp) {
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
err = fastocloud::server::ProcessSlaveWrapper::SendStopDaemonRequest(config);
|
||||
err = fastocloud::server::ProcessSlaveWrapper::SendStopDaemonRequest(config.host);
|
||||
sleep(fastocloud::server::ProcessSlaveWrapper::cleanup_seconds + 1);
|
||||
if (err) {
|
||||
std::cerr << "Stop command failed error: " << err->GetDescription() << std::endl;
|
||||
|
|
@ -92,7 +92,7 @@ int main(int argc, char** argv, char** envp) {
|
|||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
err = fastocloud::server::ProcessSlaveWrapper::SendRestartDaemonRequest(config);
|
||||
err = fastocloud::server::ProcessSlaveWrapper::SendRestartDaemonRequest(config.host);
|
||||
sleep(fastocloud::server::ProcessSlaveWrapper::cleanup_seconds + 1);
|
||||
if (err) {
|
||||
std::cerr << "Reload command failed error: " << err->GetDescription() << std::endl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue