OPNsense Forum

English Forums => General Discussion => Topic started by: jkemp on January 01, 2019, 10:26:11 PM

Title: Nginx stills runs after disabling?
Post by: jkemp on January 01, 2019, 10:26:11 PM
Hello,

I disabled the nginx service and notice it is still listed as running in the dashboard. Should it do that? Do I have to kill the service from the command line? Once the plugin is installed and enabled does the OPNsense core system use it for something?
Title: Re: Nginx stills runs after disabling?
Post by: fabian on February 24, 2019, 09:36:52 AM
Quote from: jkemp on January 01, 2019, 10:26:11 PM
I disabled the nginx service and notice it is still listed as running in the dashboard. Should it do that?

It is designed to run always because the disable flag in nginx is designed to just disable your servers not the entire service.
The reason is that I originally planned the nginx plugin to handle the web interface to the standard ports would be shared and no conflict would happen. I still have not adjusted core to allow this but with 1.8 of the plugin, it will allow plugins which can still serve content while your servers are disabled. This constraint was not implemented in tempting until version 1.8.In worst case it runs but it has no port open.

Quote from: jkemp on January 01, 2019, 10:26:11 PM
Do I have to kill the service from the command line?

You could stop it from the dashboard but CLI works as well:

configctl nginx stop



Quote from: jkemp on January 01, 2019, 10:26:11 PM
Once the plugin is installed and enabled does the OPNsense core system use it for something?

Core currently not (otherwise it would not be a plugin with one exception: you enabled the code on the command line to run the web interface over nginx, which is possible but Serial/SSH only).