luci-mod-system: add 'reload' button to software start page
authorPaul Donald <newtwen+github@gmail.com>
Mon, 28 Oct 2024 13:22:37 +0000 (14:22 +0100)
committerPaul Donald <newtwen+github@gmail.com>
Mon, 28 Oct 2024 13:22:37 +0000 (14:22 +0100)
Often restart is not what is necessary, and can trigger longer outages.

Reload is often sufficient, especially for things like rpcd.

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/startup.js

index e9319ea2d0202257e8077010826ea4fd3e5963da..3fc48197d310bbffe2837ccceda8c17c0d18b95e 100644 (file)
@@ -97,6 +97,7 @@ return view.extend({
                                        this.renderEnableDisable(list[i]),
                                        E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'start'), 'disabled': isReadonlyView }, _('Start')),
                                        E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'restart'), 'disabled': isReadonlyView }, _('Restart')),
+                                       E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'reload'), 'disabled': isReadonlyView }, _('Reload')),
                                        E('button', { 'class': 'btn cbi-button-action', 'click': ui.createHandlerFn(this, 'handleAction', list[i].name, 'stop'), 'disabled': isReadonlyView }, _('Stop'))
                                ])
                        ]);