Im tracking down a bug in the Samba middleware plugins in 12-BETA1, that causes a traceback in the GUI. For reasons I dont yet understand, the exception dump and traceback are completely unhelpful. So far, it seems to somehow jump to a function call (that crashes out), without hitting the debug output line directly preceeding the function call, which suggests I'm missing something, so I'm still trying to figure what I'm missing, ands if that's cause or effect. So I'm tracking it down the old way, by tweaking the relevant python plugins (/usr/local/lib/python3.8/site-packages/middlewared/plugins/**/*) and watching for more informative debug/trace/args info as it runs. Its not the most efficient way, but at least I can get there, and find whatever's going on - it seems pretty specific and hard to reproduce, so its a case of "debug approach works for me".
My difficulty is that to retest my work, after editing a .py, I need to cause the python middleware plugins to be reloaded. Right now the only way I know to do it, is to reboot... and Supermicro boards are slow as anything to reboot.
Tl;Dr - I need a one line command from shell, to cause the middleware plugins to be reloaded after I edit them, so I can retest the updated versions?
Thanks!
My difficulty is that to retest my work, after editing a .py, I need to cause the python middleware plugins to be reloaded. Right now the only way I know to do it, is to reboot... and Supermicro boards are slow as anything to reboot.
Tl;Dr - I need a one line command from shell, to cause the middleware plugins to be reloaded after I edit them, so I can retest the updated versions?
Thanks!