1
0
Fork 0
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:
Steffen Vogel 2017-06-15 15:29:33 +02:00
parent 3fa2c4daf6
commit 63ab85c688

View file

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