Permalink
Browse files

services: monit dependency oversight, convert service control

  • Loading branch information...
fichtner committed Mar 21, 2018
1 parent 12d161c commit 63cfe0a96c83eee0e8aea0caa841f4fc7b92a8d0
Showing with 5 additions and 12 deletions.
  1. +1 −0 Makefile
  2. +4 −12 src/opnsense/mvc/app/views/OPNsense/Monit/index.volt
@@ -80,6 +80,7 @@ CORE_DEPENDS?= ${CORE_DEPENDS_${CORE_ARCH}} \
isc-dhcp43-relay \
isc-dhcp43-server \
lighttpd \
monit \
mpd5 \
ntp \
openssh-portable \
@@ -57,9 +57,7 @@ POSSIBILITY OF SUCH DAMAGE.
ajaxCall(url="/api/monit/service/reconfigure", sendData={}, callback=function(data,status) {
$('#btn_reload_progress').removeClass("fa fa-spinner fa-pulse");
$('#btn_reload').blur();
ajaxCall(url="/api/monit/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI(data['status']);
});
updateServiceControlUI('monit');
});
});

@@ -72,9 +70,7 @@ POSSIBILITY OF SUCH DAMAGE.
mapDataToFormUI({'frm_GeneralSettings':"/api/monit/settings/get/general/"}).done(function(){
formatTokenizersUI();
$('.selectpicker').selectpicker('refresh');
ajaxCall(url="/api/monit/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI(data['status']);
});
updateServiceControlUI('monit');
});
});
});
@@ -86,9 +82,7 @@ POSSIBILITY OF SUCH DAMAGE.
mapDataToFormUI({'frm_GeneralSettings':"/api/monit/settings/get/general/"}).done(function(){
formatTokenizersUI();
$('.selectpicker').selectpicker('refresh');
ajaxCall(url="/api/monit/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI(data['status']);
});
updateServiceControlUI('monit');
});

// show/hide httpd/mmonit options
@@ -118,9 +112,7 @@ POSSIBILITY OF SUCH DAMAGE.
$("#frm_GeneralSettings_progress").addClass("fa fa-spinner fa-pulse");
var frm_id = 'frm_GeneralSettings';
saveFormToEndpoint(url = "/api/monit/settings/set/general/",formid=frm_id,callback_ok=function(){
ajaxCall(url="/api/monit/service/status", sendData={}, callback=function(data,status) {
updateServiceStatusUI(data['status']);
});
updateServiceControlUI('monit');
});
$("#"+frm_id+"_progress").removeClass("fa fa-spinner fa-pulse");
$("#btn_ApplyGeneralSettings").blur();

0 comments on commit 63cfe0a

Please sign in to comment.