64 Commits

Author SHA1 Message Date
Franco Fichtner
70f5acad06 ui: service control indicators and button rework; closes #1562
While here, use fontawesome icons and make the legacy and MVC
header section match in layout terms.
2017-11-22 11:45:42 +00:00
Franco Fichtner
c5d4002541 src: add Scott's e-mail everywhere 2017-08-05 20:57:29 +02:00
Franco Fichtner
9b694b705d start to hide IPsec and OpenVPN for pluginification 2017-03-11 17:51:54 +01:00
Franco Fichtner
3b34f51f63 plugins: add firewall reload button, inline service_name_compare() 2016-11-21 00:02:41 +01:00
Franco Fichtner
715b636793 unbound: clean up includes and function usage
o consolidate "unbound_" prefix for unbound.inc for pluginification
o services.inc includes unbound.inc rightfully, a bit like a
  plugin would do in the future, but this also means we can
  zap all requires from top pages, which are entirely spurious.
o get_dns_servers() moves to system.inc because it is used by
  status_interfaces.php
o RIP read_hosts()
2016-11-14 11:28:01 +01:00
Franco Fichtner
8ab6fb4c5e relayd: extensive pluginification
Not perfect yet, some spots still taint the backend with
requiring relayd.inc which should only be included by the
plugin's own files directly.
2016-11-07 22:03:50 +01:00
Franco Fichtner
0e03967cf5 www: strip plugins.inc from frontend 2016-10-01 10:50:03 +02:00
Ad Schellevis
4e3b66c257 zapp pfsense-utils.inc 2016-06-20 16:59:19 +02:00
Ad Schellevis
f759d902dc move legacy service start/stop/restart to services.inc 2016-05-17 18:33:45 +02:00
Franco Fichtner
4765db0541 services: improve reload by making service script unique 2016-04-16 09:43:51 +02:00
Ad Schellevis
cef101f5e2 (legacy) rework status_services, optional tag for script, fix typo 2016-04-16 07:55:20 +02:00
Ad Schellevis
4918a81922 (legacy) $_GET should be $_POST, like in the rest of our code... last one, needs a bit of polishing 2016-04-15 18:54:35 +02:00
Franco Fichtner
2223d5d276 services: simplify vpn service control and extend for pppoe servers 2016-03-15 15:29:40 +01:00
Franco Fichtner
2ddb95f7f8 inc: align service configure
o Add $waitforit flag to killbypid() and use it to simplify code.

o When requesting a configure via id, do not exclude the service
  because it is disabled.  The pidfile needs to be killed still.

o Unwind the convoluted code paths in the VPN plugin during early
  configure: kill service, probe for active, then do work.
2016-02-26 08:15:58 +01:00
Franco Fichtner
e8fa56c5ac services: bubble down plugins_services hook
This way, the caller only needs to specify plugins.inc on the
top to let the subsystem(s) know plugin hooks need to be executed.
2016-02-21 20:09:07 +01:00
Franco Fichtner
669f6e03eb plugins: rules change, plugins.inc is required now
This is done so that services.inc can load plugins when
plugins.inc was invoked, if not, it stays clear of the
extra work.
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
c9b7076609 plugins: don't need so many includes 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
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
Franco Fichtner
9784c8b038 services: restructure restart, work in progress 2016-02-21 12:58:43 +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
45d4559674 services: s/get_services/services_get/g 2016-02-19 17:36:32 +01:00
Frank Wall
4a8d192b48 fix relayd startup/restart (ref #780) 2016-02-18 17:28:12 +01:00
Ad Schellevis
705d1e5061 (captive portal) add service to status page, closes https://github.com/opnsense/core/issues/771 2016-02-10 21:49:04 +01:00
Ad Schellevis
f173a3bedd (legacy) fix redirect on service reload, closes https://github.com/opnsense/core/issues/763 2016-02-08 16:41:54 +01:00
Ad Schellevis
4ae8fc6cb6 (legacy) add configd to status_services.php page, closes https://github.com/opnsense/core/issues/754 2016-02-08 10:56:01 +01:00
Franco Fichtner
7d6a7ded44 shortcuts: zap log links 2016-01-17 11:25:19 +01:00
Ad Schellevis
72a32731ca (legacy) refactor status_services.php 2015-12-15 20:03:36 +01:00
Franco Fichtner
0d28ce2528 www: main and status shortcuts removed
They are replaced by the navigation.  Log files need to be cleaned
up further.  Progress is good.  :)
2015-12-09 07:10:31 +01:00
Franco Fichtner
86d50f8793 www: remove the need for manual $pgtitle #461 2015-12-08 19:45:59 +01:00
Manuel Faux
38efc0c4e7 unbound: fix starting of unbound via Status: Services
unbound could not be started via Status: Services.
2015-12-08 16:18:00 +01:00
Franco Fichtner
5e5e6c2f27 captive portal: bye bye my love
The captive portal is being replaced!  This hooks up the
new page into the services section while ditching most of
the old code.  There'll be no migration, if you use package
`opnsense-devel' and the captive portal you'll have to switch
to `opnsense' or migrate to the new code.  Beware that the
new captive portal is going to be a huge step forward but
features will trickle in week after week until it is stable
enough to merge it.  Latest release date is going to be 16.1.
2015-10-15 23:48:23 +02:00
Franco Fichtner
712fbcd500 crash report: Call to undefined function filter_configure() 2015-09-11 10:18:38 +02:00
Franco Fichtner
8edde1ef8b status: fix include in services page 2015-07-30 06:07:14 +02:00
Franco Fichtner
45f15fbb5c src: scrub spurious prefix from copyright header
We do not embed file names into the header, because files get
deleted and renamed every now and then.  git-log is a good way
to read the full history.
2015-07-27 12:21:30 +02:00
Franco Fichtner
3cb0cb1135 services: fix twisted gettext() invokes 2015-07-27 09:24:07 +02:00
Ad Schellevis
28e8fbcd10 (legacy) add interfaces.inc dependency for status_services.php 2015-07-23 13:24:22 +00:00
Ad Schellevis
020ce673cd (legacy) more dependency cleanups 2015-07-23 09:45:57 +00:00
Ad Schellevis
c82cf92b1f (legacy) add dependency to status_services.php 2015-07-23 08:46:57 +00:00