luci-app-keepalived: do not restart keepalived on user notification change
authorFlorian Eckert <[email protected]>
Wed, 19 Mar 2025 09:20:25 +0000 (10:20 +0100)
committerFlorian Eckert <[email protected]>
Wed, 19 Mar 2025 09:28:43 +0000 (10:28 +0100)
The content of the file is executed at the next event, so it is not necessary
to reload keepalived if the user notification has changed.

Signed-off-by: Florian Eckert <[email protected]>
applications/luci-app-keepalived/htdocs/luci-static/resources/view/keepalived/notification.js

index 613971d9e3870293d69a480a3909bb77f49d80cb..c12a63be8e00e4abca44a4da345a48b00ff4dd78 100644 (file)
@@ -16,8 +16,6 @@ return view.extend({
                return fs.write('/etc/keepalived.user', value).then(function(rc) {
                        document.querySelector('textarea').value = value;
                        ui.addNotification(null, E('p', _('Contents have been saved.')), 'info');
-
-                       return fs.exec('/etc/init.d/keepalived', [ 'reload' ]);
                }).catch(function(e) {
                        ui.addNotification(null, E('p', _('Unable to save contents: %s').format(e.message)));
                });