1
0
Fork 0
mirror of https://github.com/fastogt/fastocloud.git synced 2025-03-09 23:18:50 +00:00

New protocol

This commit is contained in:
Topilski 2024-12-26 09:06:54 +03:00
parent 1156584283
commit 9bbf38717a
33 changed files with 846 additions and 1321 deletions

View file

@ -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;