1
0
Fork 0
Commit Graph

27 Commits

Author SHA1 Message Date
nemunaire f60de818f2 Virtualy move all nemubot modules into nemubot.module.* hierarchy, to avoid conflict with system/vendor modules 2018-01-14 19:18:58 +01:00
nemunaire 45fe5b2156 Refactor configuration loading 2017-09-19 07:25:34 +02:00
nemunaire 67cb3caa95 main: new option -A to run as daemon 2017-07-19 10:36:27 +02:00
nemunaire e8809b77d2 When launched in daemon mode, attach to the socket 2017-07-19 10:36:27 +02:00
nemunaire 9d446cbd14 Deamonize later 2017-07-19 10:36:27 +02:00
nemunaire cf8e1cffc5 Format and typo 2017-07-16 21:17:48 +02:00
nemunaire 764e6f070b Refactor file/socket management (use poll instead of select) 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 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 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
nemunaire ac33ceb579 Remove dead or useless code 2015-11-03 07:20:52 +01:00
nemunaire f9f54989fe Fix logger level filtering 2015-10-20 18:02:01 +02:00
nemunaire c94d9743dd Add --logfile option 2015-10-20 18:02:00 +02:00
nemunaire 5e95f50fb6 Expand argument paths 2015-10-20 18:02:00 +02:00
nemunaire dda78df9d2 Add new action queue, synchronized with main thread for prompt like actions (conf loading, exit, ...) 2015-09-28 11:59:37 +02:00
nemunaire 418ff4f519 Datastore: add a method to create a new empty tree 2015-05-25 16:44:26 +02:00
nemunaire 806ff1d4a0 Move main code to __main__.py 2015-05-25 16:44:24 +02:00