3847 Commits

Author SHA1 Message Date
Franco Fichtner
4635ac7b98 l2tp: make it shine (as a service) 2016-02-21 20:09:07 +01:00
Franco Fichtner
40516e542e pptp: improve edit page like l2tp already does 2016-02-21 20:09:07 +01:00
Franco Fichtner
07bafdf64c services: enrich with plugins 2016-02-21 20:09:07 +01:00
Franco Fichtner
9709336b25 plugins: add hooks for services 2016-02-21 20:09:07 +01:00
Franco Fichtner
cbd9ffb5f9 plugins: make plugins.inc side-effect free
The rules are simple:

* plugins_configure() requires all available plugins, probes their
  configure functions and then calls the advertised functions.

* All GUI pages must directly include their includes in plugins.inc.d
  to not overly pollute their loading phase.
2016-02-21 20:09:07 +01:00
Franco Fichtner
c9b7076609 plugins: don't need so many includes 2016-02-21 20:09:07 +01:00
Franco Fichtner
93e47fac38 plugins: clean up a bit, add temporary laucher for functions 2016-02-21 20:09:07 +01:00
Franco Fichtner
c68033bc46 ipsec: strip vpn_ prefix from backend functions for clarity 2016-02-21 20:09:07 +01:00
Franco Fichtner
1373b01a95 plugins: move ipsec functions to ipsec.inc 2016-02-21 20:09:07 +01:00
Franco Fichtner
d7df9ecf10 src: move ipsec.inc require to top pages
For now plugins.inc and ipsec.inc will coexist on pages that
may need only one or none to avoid unefined function errors.
This will be pruned after investigating the contents of both
files...
2016-02-21 20:09:07 +01:00
Franco Fichtner
f79fac8f25 src: first shuffling for splitting off plugins from core 2016-02-21 20:09:07 +01:00
Franco Fichtner
7b17ac34dc openvn: remove service control from pages
This doesn't work out at all for the fact that the control picks
up the first instance it finds, either client or server, but not
clearly stating so.  That's why there is a status page with all
the services for clients and servers...
2016-02-21 20:07:06 +01:00
Franco Fichtner
918df6eae3 services: finish rework by removing last custom glue 2016-02-21 19:33:27 +01:00
Franco Fichtner
d03b53b30b services: extent for openvpn's special arguments 2016-02-21 19:24:59 +01:00
Ad Schellevis
71bd852ff6 (health) add some comments 2016-02-21 18:36:02 +01:00
Ad Schellevis
731d5ab600 (proxy) add option maximum_object_size, issue https://github.com/opnsense/core/issues/787 2016-02-21 18:29:20 +01:00
Franco Fichtner
9784c8b038 services: restructure restart, work in progress 2016-02-21 12:58:43 +01:00
Franco Fichtner
f90e96f243 universal plug and play: move functions to their file
services.inc already includes unbound.inc and miniupnpd.inc so
it's safe to do this...
2016-02-21 12:36:56 +01:00
Franco Fichtner
79edae2ce8 universal plug and play: align with service hooks 2016-02-21 12:32:56 +01:00
Franco Fichtner
d981002517 services: align openvpn stop 2016-02-21 12:16:09 +01:00
Franco Fichtner
3600c6a307 services: shrink stop further and start fixing openvpn 2016-02-21 12:04:42 +01:00
Franco Fichtner
de8882444c services: adapt stop commands to new approach 2016-02-21 11:22:17 +01:00
Franco Fichtner
60f0f46127 services: migrate service start commands to array 2016-02-20 20:21:31 +01:00
Franco Fichtner
6f2daad533 serivce: need another type for command launcher 2016-02-20 12:54:44 +01:00
Franco Fichtner
4d3ac63ac3 services: design service commands as arrays by default 2016-02-20 12:46:31 +01:00
Franco Fichtner
77696bd81e services: tracer code for start logic into service array 2016-02-20 12:39:16 +01:00
Franco Fichtner
aa8202aa3c services: start to restructure service_control_start()
Improve redirect to avoid removing the savemsg which can be useful
and start to use the service array instead of the plain name.  This
is going to help with moving all the start/restart/stop info into
the service array creation for base services as well as plugin
services.
2016-02-20 12:01:36 +01:00
Franco Fichtner
89179ee723 services: why not embed the pidfile in the service array? 2016-02-19 18:23:56 +01:00
Ad Schellevis
19174b41ce spacing 2016-02-19 17:43:59 +01:00
Ad Schellevis
525a4ed7fc (legacy) regression status_dhcpv6_leases.php 2016-02-19 17:42:14 +01:00
Ad Schellevis
e81728ba67 (legacy) regression status_dhcpv6_leases.php 2016-02-19 17:39:49 +01:00
Franco Fichtner
45d4559674 services: s/get_services/services_get/g 2016-02-19 17:36:32 +01:00
Franco Fichtner
c0ec745830 services: push apinger probe into apinger probe 2016-02-19 17:26:20 +01:00
Ad Schellevis
d4d07fbb8e (legacy) move display_host_results into log.widget.php
The widget collection needs a cleanup, but is not at the top of the priority list. Lets make sure the legacy functionality delivers output and make sure the already cleaned components stay that way.
2016-02-19 17:08:34 +01:00
Ad Schellevis
7e51a40430 (legacy) minor cleanups in services.inc 2016-02-19 16:42:44 +01:00
Ad Schellevis
835a66bde7 (legacy) status_dhcpv6_leases.php remove test data 2016-02-19 16:11:44 +01:00
Ad Schellevis
b9f53deea2 (legacy) refactor status_dhcpv6_leases.php 2016-02-19 16:10:52 +01:00
Ad Schellevis
ca46899b75 (legacy) regression services_router_advertisements.php 2016-02-19 11:46:12 +01:00
Ad Schellevis
719c1e92bd (legacy) refactor services_dhcpv6_relay.php 2016-02-19 10:21:34 +01:00
Ad Schellevis
bcaaf64cf9 (legacy) fix html error issue in firewall_aliases_edit.php, https://github.com/opnsense/core/issues/785 2016-02-19 08:42:00 +01:00
Ad Schellevis
83a3cdbf34 (legacy) refactor services_router_advertisements.php, work in progress 2016-02-18 18:42:58 +01:00
Ad Schellevis
db74e1570e (legacy) refactor services_dhcpv6_edit.php, work in progress 2016-02-18 18:42:05 +01:00
Ad Schellevis
ba433af895 (legacy) refactor services_dhcpv6.php, work in progress 2016-02-18 18:41:39 +01:00
Frank Wall
4a8d192b48 fix relayd startup/restart (ref #780) 2016-02-18 17:28:12 +01:00
Franco Fichtner
1eb5dae76d www: zap some spurious assigments
Most of the time, there is no return value from the functions,
sometimes $retval is not evaluated, and sometimes it just seems
totally convoluted to do it when 99% of the configuration code
does not do it and works fine wihout it.

It's also not practical, because there is no no notion of a
rollback that would have to ensue in such cases.
2016-02-18 16:44:27 +01:00
Frank Wall
5a26098849 fix filter reload with invalid relayd config, fixes #780 2016-02-18 16:02:10 +01:00
Ad Schellevis
c4a63d3f03 (legacy) missing ntpserver in post, services_dhcp.php 2016-02-18 15:29:31 +01:00
Ad Schellevis
9628c0db12 (legacy) typo in services_dhcp.php 2016-02-18 15:26:41 +01:00
Ad Schellevis
14e0067957 (legacy) style fix 2016-02-18 15:24:22 +01:00
Franco Fichtner
8770689a0c firmware: sort upgrade packages, needs more work for other types
GUI sorting for now should be new, update, reinstall, remove.  Later
all those types ought to be merged into a single list with backwards-
compatible behaviour.  First of many neat firmware improvements on
our way to 16.7.  :)
2016-02-18 09:37:33 +01:00