mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
web proxy: tweak previous
We can't fix reconfigure, but at least we can split up restart to be an explicit stop start to push 'squid -z -N' into the middle. PR: https://github.com/opnsense/core/issues/2008
This commit is contained in:
parent
25ca2ad23f
commit
85c1e0a82f
@ -40,6 +40,7 @@ function squid_services()
|
||||
'start' => array('proxy start'),
|
||||
'stop' => array('proxy stop'),
|
||||
),
|
||||
'pid' => '/var/run/squid/squid.pid',
|
||||
'name' => 'squid',
|
||||
);
|
||||
}
|
||||
|
||||
@ -19,16 +19,16 @@ message:stopping proxy
|
||||
|
||||
[restart]
|
||||
command:
|
||||
/usr/local/opnsense/scripts/proxy/setup.sh;
|
||||
/usr/local/etc/rc.plugins_configure webproxy restart;
|
||||
/usr/local/etc/rc.d/squid restart
|
||||
/usr/local/etc/rc.d/squid stop;
|
||||
/usr/local/opnsense/scripts/proxy/setup.sh;
|
||||
/usr/local/etc/rc.d/squid start
|
||||
parameters:
|
||||
type:script
|
||||
message:restarting proxy
|
||||
|
||||
[reconfigure]
|
||||
command:
|
||||
/usr/local/opnsense/scripts/proxy/setup.sh;
|
||||
/usr/local/etc/rc.plugins_configure webproxy reconfigure;
|
||||
/usr/local/etc/rc.d/squid reload
|
||||
parameters:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user