s/Unbound DNS Forwarder/Unbound DNS Resolver/ to be consistent with other wording in the GUI
Process unbound start from status services
This was missing, so nothing happened when the user tried to start Unbound from Status->Services
find_dhclient_process() returns an int, not string
Avoid a "Cannot use string offset as an array" error if the packages section of the config is missing.
Add some protection to parameters that come through _GET
Show proper status for ipsec
Make sure /usr/local/etc/rc.d exists
On 2.2-ALPHA (i386)built on Mon Apr 21 13:01:11 CDT 2014 (for example) there was /usr/local/etc but not /usr/local/etc/rc.d - when I tried to install bandwidthd, that called write_rcfile() which failed because /usr/local/etc/rc.d did not already exist....
support symlinked RC scripts from PBI packages
More removal of racoon from referenced in sources
Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir
Add Unbound to the services list
Correct this i thought i already did. Thanks-to: Phil Davis for spotting
Add sshd service to list (if enabled)
Tidy up the "Helper Icons"
The "Helper Icons" at the top right of some service pages at presentproduces 30+ HTML errors/warnings, this is due to the table cell beingwrapped in a span statement then in a div statement, table cells canonly be part of a table row then within a table statement....
Support the names used by the status page as well as those used internally by service entries.
Show apinger as a service when active, and display its status on gateway-related pages.
Correctly decide if dhcrelay is enabled
Teach service start stop restart about dhcrelay6
Correct checking status of vhosts-http as submitted by: http://forum.pfsense.org/index.php/topic,61636.0.html
Disabled package is also indicated by enable blank
Consider packages that set enable to 'false' or 'off'
Check for disabled services when displaying service lists
Add PHP shell playback script to control services from the command line (works like Status > Services)
Move these service control functions into service-utils.inc so they may be re-used.
Tidy up "services" widget XHTML
Added ALT to img tagsClosed off IMG tagsDeprecated the ampersand in HREF tagAdded summary to table tagsMoved nowrap to class definitionTidied up the CDATA section in scripts.
Make is_pid_running function return more conisten results by using isvalidpid
More shortcuts
Refine the formatting of the service status icon a bit depending on its context.
Add some safety belts.
Add/use some more similarly styled icons here, for a more consistent look.
Fixup openvpn shortcut bar status/control
Give status icon a title/tooltip
Print service title in tooltip for shortcut bar
Start revamp of shortcuts, central file to hold links, also service status/control, added to dns forwarder as example.
Fixup output formatting
Consolodate a bunch of duplicate service status code
Change rcfileprefix to a constant
Stop service needs to wait process to be stopped before trying to restart/start it.
Test for null names passed to these functions as a safety precaution.
Ticket #1534. Check if a rc file exists before trying to run it. Also return if we execute a stop command through rc file to be consistent with the start_service function.
Pass the -a parameters to pgrep to be certain we search ancestors as well. The side effects might be inoquos from the pfSense context.
Remove trailing carriage return
Cosmetic change from product_website to product_name
Use mwexec_bg instead of exec to run a service's start command so PHP doesn't hang in the likely event that it spawns a background process.
Fix write_rcfile() declaring $rcfileprefix as global and touching rcfile before check if it is writable
Fix variable name typo in status_services.php and fix return value of is_pid_running. Fixes #877
Correct binaries and find_dhclient_process
$g is needed here.
Ticket #485. Correct code and use pkill/pgrep to match or kill process. Since these utilities know how to handle pidfiles and exact matches on process names.
Bring up openvpn up to speed and try to bring this file near to useful/readable.
Use procatat instead of ps as the latter always prints a header, alsouse full paths.
'\b' is not the word boundary on BSD, its actually '[[:<:]]' and '[[:>:]]',change these functions to use better syntax and not grep at all.
Check to see if processes are running before killing
Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additions
Added custom_php_service_status_command support for packages.
Package authors can define a custom_php_service_status_commandblock in their package XML. Such block should only contain functioncalls, and the first should be one to include their function library...
Fix display of DHCP status on Status -> Interfaces
Add product_copyright re-branding supportAdd product_copyright_years re-branding supportAdd product_website re-branding supportAdd product_email re-branding support
Work sponsored-by: Centipede Networks
remove part of solution of problem solved elsewhere
Make OpenVPN usable in status_service.php
Fix DHCP status on status_interfaces.php. Use find_dhclient_process() for test.
MFC 15382fix: is_process_running() does inaccurate matches
Correctly start services from /usr/local/etc/rc.d/ first before any other method
MFC 12461"\t0\n" > 0, therefore is_process_running always returned 1. Btw, now it returns true or false, cause I don't see how it could be any different. Should just work now.
We're in 2006 now, toto
If we cannot find a service executable for an item and we make it to the bottom of stop_service() then simply killall service name
Do one command or the other
Correctly detect start script
Remove trailing newline
Use ps awux
MFC 7080 7084Minor cleanup and comment out old $ps code for the time being.Fix backwards comment.
Make sure service is stopped before starting
Ticket #590
is_process_running(): * grep -v grep * 2 -> 0
Add restart_service_if_running.
Comment cleanup
Various code cleanups and a few actual bugfixes courtesy of Zend
Add suggested fix for is_process_running(), which seems broken.
Whoops. Don't forget to merge.
Typos.
Make *_service less picky.
Revert is_service_running to rev 1.10.
Comment cleanups
add a comment that if you change this function, ill kill ya.
Really make is_process_running() work as it should for the frickin 5th time.
Make is_process_running() work as it should for the frickin 5th time.
Move the actual ps component of is_service_running into is_process_running.
ps a -> ps ax
We need to start services in the background to prevent blocking.
More fixes.
Fixes and updates.
Add is_service_running.
Add executable.
Clean up restart_service.