mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
pipe: shutdown web services
This commit is contained in:
parent
3fa2c4daf6
commit
63ab85c688
1 changed files with 5 additions and 0 deletions
|
@ -74,6 +74,11 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx)
|
|||
|
||||
node_stop(node);
|
||||
node_destroy(node);
|
||||
|
||||
if (node->_vt->start == websocket_start) {
|
||||
web_stop(&sn.web);
|
||||
api_stop(&sn.api);
|
||||
}
|
||||
|
||||
info(GRN("Goodbye!"));
|
||||
exit(EXIT_SUCCESS);
|
||||
|
|
Loading…
Add table
Reference in a new issue