random ai stuff

This commit is contained in:
matst80
2025-11-21 18:12:55 +01:00
commit 60f5783a26
187 changed files with 25197 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <signal.h>
#include "service/TelldusMain.h"
#include "service/Log.h"
TelldusMain tm;
void shutdownHandler(int onSignal) {
Log::notice("Shutting down");
tm.stop();
}
void sigpipeHandler(int onSignal) {
Log::notice("SIGPIPE received");
}
int main(int argc, char **argv) {
/* Install signal traps for proper shutdown */
signal(SIGTERM, shutdownHandler);
signal(SIGINT, shutdownHandler);
signal(SIGPIPE, sigpipeHandler);
Log::notice("telldusd started");
tm.start();
Log::notice("telldusd stopped gracefully");
Log::destroy();
return 0;
}