1
0
Fork 0
Commit Graph

840 Commits

Author SHA1 Message Date
nemunaire 2ac37f79d9 New class storing scope 2017-07-18 00:50:30 +02:00
nemunaire e3150a6061 Messages now implements Serializable 2017-07-18 00:50:30 +02:00
nemunaire e0af09f3c5 New printer and parser for bot data, XML-based 2017-07-18 00:50:30 +02:00
nemunaire 2992c13ca7 socket: limit getaddrinfo to TCP connections 2017-07-18 00:48:30 +02:00
nemunaire 49c207a4c9 events: fix help when no event is defined 2017-07-18 00:48:30 +02:00
nemunaire 3c13043ca3 run: recreate the sync_queue on run, it seems to have strange behaviour when created before the fork 2017-07-18 00:48:30 +02:00
nemunaire 5b28828ede event: ensure that enough consumers are launched at the end of an event 2017-07-18 00:48:30 +02:00
nemunaire 2a25f5311a rename module nextstop: ratp to avoid import loop with the inderlying Python module 2017-07-18 00:48:30 +02:00
nemunaire 1db63600e5 main: new option -A to run as daemon 2017-07-18 00:48:30 +02:00
nemunaire 5f89428562 Use getaddrinfo to create the right socket 2017-07-18 00:48:30 +02:00
nemunaire 205a39ad70 Try to restaure frm_owner flag 2017-07-18 00:42:11 +02:00
nemunaire c51b0a9170 When launched in daemon mode, attach to the socket 2017-07-18 00:42:11 +02:00
nemunaire eb70fe560b Deamonize later 2017-07-18 00:42:11 +02:00
nemunaire 8b6f72587d Local client now detects when server close the connection 2017-07-18 00:42:11 +02:00
nemunaire 02838658b0 Fix communication over unix socket 2017-07-18 00:42:11 +02:00
nemunaire 1a813083e5 Handle multiple SIGTERM 2017-07-18 00:42:11 +02:00
nemunaire 3fbeb49a6c suivi: add fedex 2017-07-18 00:42:11 +02:00
nemunaire f5f13202c5 suivi: use getURLContent instead of call to urllib 2017-07-18 00:42:11 +02:00
nemunaire aeba947877 tools/web: fill a default Content-Type in case of POST 2017-07-18 00:42:11 +02:00
nemunaire b27e01a196 tools/web: improve redirection reliability 2017-07-18 00:42:11 +02:00
nemunaire 4d68410777 tools/web: forward all arguments passed to getJSON and getXML to getURLContent 2017-07-18 00:42:11 +02:00
nemunaire 384fbc6717 Update weather module: refleting forcastAPI changes 2017-07-18 00:42:11 +02:00
nemunaire 63e65b2659 modulecontext: use inheritance instead of conditional init 2017-07-18 00:42:11 +02:00
nemunaire bdf8a69ff0 Avoid stack-trace and DOS if event is not well formed 2017-07-18 00:42:11 +02:00
nemunaire 4f1dcb8524 [nextstop] Use as system wide module 2017-07-18 00:42:11 +02:00
nemunaire 6d2f90fe77 Allow module function to be generators 2017-07-18 00:42:10 +02:00
nemunaire 2e5834a89d Parse server urls using parse_qs 2017-07-18 00:42:10 +02:00
nemunaire 26d1f5b6e8 Format and typo 2017-07-18 00:42:10 +02:00
nemunaire 40fc84fcec Implement socket server subparse 2017-07-18 00:42:10 +02:00
nemunaire 449cb684f9 Refactor file/socket management (use poll instead of select) 2017-07-18 00:42:08 +02:00
nemunaire 6d8dca211d Use fileno instead of name to index existing servers 2017-07-16 21:17:48 +02:00
nemunaire 1c21231f31 Use super() instead of parent class name 2017-07-16 21:17:48 +02:00
nemunaire 2a3cd07c63 Documentation 2017-07-16 21:17:48 +02:00
nemunaire b5d5a67b2d In debug mode, display running thread at exit 2017-07-16 21:17:48 +02:00
nemunaire 4c11c5e215 Handle case where frm and to have not been filled 2017-07-16 21:17:48 +02:00
nemunaire a0c3f6d2b3 Review consumer errors 2017-07-16 21:17:48 +02:00
nemunaire 7cf73fb84a Remove reload feature
As reload shoudl be done in a particular order, to keep valid types, and because maintaining such system is too complex (currently, it doesn't work for a while), now, a reload is just reload configuration file (and possibly modules)
2017-07-16 21:17:48 +02:00
nemunaire 6cd299ab60 New keywords class that accepts any keywords 2017-07-16 21:17:48 +02:00
nemunaire fc14c76b6d [rnd] Add new function choiceres which pick a random response returned by a given subcommand 2017-07-16 21:17:48 +02:00
nemunaire 24eb9a6911 Can attach to the main process 2017-07-16 21:17:48 +02:00
nemunaire 38fd9e5091 Remove legacy prompt 2017-07-14 12:35:55 +02:00
nemunaire a7d7013639 Fix and improve reload process 2017-07-14 12:35:55 +02:00
nemunaire 9dc385a32a New argument: --socketfile that create a socket for internal communication 2017-07-14 12:35:55 +02:00
nemunaire 150d069dfb New CLI argument: --pidfile, path to store the daemon PID 2017-07-14 12:35:55 +02:00
nemunaire f160411f71 Catch SIGUSR1: log threads stack traces 2017-07-14 12:35:55 +02:00
nemunaire b0678ceb84 Extract deamonize to a dedicated function that can be called from anywhere 2017-07-14 12:35:55 +02:00
nemunaire 57275f5735 Catch SIGHUP: deep reload 2017-07-14 12:35:55 +02:00
nemunaire ec512fc540 Do a proper close on SIGINT and SIGTERM 2017-07-14 12:35:55 +02:00
nemunaire 7bc37617b0 Remove prompt at launch 2017-07-14 12:35:55 +02:00
nemunaire 1858a045cc Introducing daemon mode 2017-07-14 12:35:55 +02:00