dsh-reloader: One-click Restart Plugin for DSH Web Interface
`dsh-reloader` is an MIT-licensed DSH plugin designed to address the issue where the `dsh web` process must be manually restarted after installing or updating plugins for changes to take effect. By encapsulating the `dsh_reload` tool, the plugin implements an automated restart process: it waits 6 seconds, then uses `lsof` and `ps` commands to precisely locate and terminate the process listening on port 3080 with 'dsh' in its command line; it then waits up to 15 seconds to ensure the port is released, and finally uses `nohup` to restart `dsh web` in the background, writing logs to `~/.dsh/web.log`. Users only need to install the plugin (supporting GitHub or local source installation) and issue the "help me reload" command in DSH to complete the task.
Read More