James Lu
481561f972
control: don't spew "Stopping plugins" notices if none are loaded
...
(cherry picked from commit d818c17072
)
2018-03-30 23:27:38 -07:00
James Lu
7d5d5a385e
control: handle SIGUSR1 as well as SIGHUP as rehash
...
This is used by the backported launcher for rehash.
2018-03-30 23:06:58 -07:00
James Lu
dac0d5b234
core: Properly track whether we should actually remove the PID file
...
Previously, PyLink spuriously removed PID files even if -n/--no-check-pid was set or if PID file checking caused PyLink to quit
(cherry picked from commit 91659ea992
)
2017-07-20 21:33:17 +08:00
James Lu
b90da19dfa
control: log the name of the PID file on shutdown
...
(cherry picked from commit d57e141fbc
)
2017-07-20 21:31:54 +08:00
James Lu
f80c5df971
control: log the start and end of rehash to INFO
2017-06-02 08:46:27 -07:00
James Lu
60a0bcdc7a
Rename config option log:stdout -> log:console
...
Closes #386 .
2017-06-02 08:42:32 -07:00
James Lu
6e8f618f80
control: don't duplicate config validation
2017-06-02 08:34:59 -07:00
James Lu
998beb51b5
control: move plugin shutdown & pidfile cleanup routines to atexit
...
It is possible for PyLink to shutdown indirectly by disconnecting all networks. In these cases, the shutdown routines never ran at all...
2017-05-12 19:13:02 -07:00
James Lu
59dd8d3bf8
control: print remaining threads on forced shutdowns as well
2017-05-07 13:39:46 -07:00
James Lu
55873416a1
control: raise KeyboardInterrupt to speed up forced shutdowns?
2017-03-26 14:44:04 -07:00
James Lu
c67c0aa2e6
rehash: fix resetting the wrong autoconnect multiplier variable
2017-03-11 01:05:07 -08:00
James Lu
2028cab04c
core: Grow autoconnect delays by a configurable factor whenever connections fail
...
Closes #348 .
2017-03-11 00:21:30 -08:00
James Lu
0526e96dc5
control: remove an extraneous, obsolete comment
2017-03-10 23:57:37 -08:00
James Lu
f6d9765f87
core: implement module loading from user-defined directories
...
Closes #350 .
2017-03-08 22:31:57 -08:00
James Lu
8a773dea4e
core: normalize exit codes
2017-02-27 07:26:29 -08:00
James Lu
a3f122fee4
control: try a more stable force-shutdown routine
2017-02-18 12:19:53 -08:00
James Lu
b2286157ef
core: update stdout log level on REHASH
2017-01-07 00:12:35 -08:00
James Lu
e7a005b685
control: log remaining threads on shutdown, for debugging freezes
2016-12-16 19:42:12 -08:00
James Lu
b3387f2d41
conf: fix deprecation warnings crashing because log is unavailable
...
This allows conf methods to access to global logger by via an optional 'logger' argument. However,
the caveat is that the logging facilities are still unavailable on first start, because log can
only be imported *after* the configuration is loaded.
2016-12-05 22:43:01 -08:00
James Lu
b750bd4d15
coremods/control: ignore errors when removing PID file
2016-10-15 14:31:13 -07:00
Ken Spencer
bc4be815e4
coremods: make _shutdown remove running 'config'.pid
2016-10-15 16:50:25 -04:00
James Lu
556b388a4e
core: Rehashable permissions; import coremods on start
2016-08-25 12:07:55 -07:00
James Lu
126a07bdf6
core: rehashable file loggers with log rotation support
...
Closes #176 . Closes #315 .
2016-08-17 21:42:18 -07:00
James Lu
0d563eaa57
control/utils: unload the PyLink service bot on shutdown
2016-07-26 16:26:01 -07:00
James Lu
a4dbd8d09f
control: handle SIGINT for clean shutdown on ctrl-c
...
Closes #280 .
2016-07-26 16:16:23 -07:00
James Lu
8704114fa0
control: copy world.networkobjects to prevent RuntimeError
...
i.e.: RuntimeError: dictionary changed size during iteration
2016-07-01 22:20:24 -07:00
James Lu
017d6a4651
coremods: remove references to 'coreplugin' in logging
2016-07-01 21:08:50 -07:00
James Lu
4bd621f47e
control: when rehashing, reconnect networks without autoconnect that failed to connect the first time
2016-07-01 20:33:00 -07:00
James Lu
847a98755f
core: use a shared function for disconnecting + removing networks
2016-07-01 20:14:31 -07:00
James Lu
3a57e8d595
Split coreplugin.py into coremods/
...
Closes #240 .
2016-06-21 11:25:47 -07:00