summaryrefslogtreecommitdiffstats
path: root/etc/inc/service-utils.inc
Commit message (Collapse)AuthorAgeFilesLines
* Test for null names passed to these functions as a safety precaution.Ermal2011-05-171-0/+3
|
* Test for null names passed to these functions as a safety precaution.Ermal2011-05-171-0/+6
|
* Ticket #1534. Check if a rc file exists before trying to run it. Also return ↵Ermal2011-05-171-1/+4
| | | | 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. ↵Ermal2011-03-011-2/+2
| | | | The side effects might be inoquos from the pfSense context.
* Remove trailing carriage returnScott Ullrich2010-11-101-1/+1
|
* Cosmetic change from product_website to product_nameWarren Baker2010-10-101-1/+1
|
* Use mwexec_bg instead of exec to run a service's start command so PHP ↵Erik Fonnesbeck2010-10-051-1/+1
| | | | doesn't hang in the likely event that it spawns a background process.
* Fix write_rcfile() declaring $rcfileprefix as global and touching rcfile ↵Renato Botelho2010-09-201-0/+7
| | | | before check if it is writable
* Fix variable name typo in status_services.php and fix return value of ↵Erik Fonnesbeck2010-09-071-1/+1
| | | | is_pid_running. Fixes #877
* Correct binaries and find_dhclient_processErmal2010-08-311-1/+1
|
* $g is needed here.Ermal2010-08-311-0/+2
|
* Ticket #485. Correct code and use pkill/pgrep to match or kill process. ↵Ermal2010-08-311-50/+52
| | | | 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.Ermal2010-08-311-4/+5
|
* Use procatat instead of ps as the latter always prints a header, alsothompsa2010-03-121-1/+1
| | | | use full paths.
* '\b' is not the word boundary on BSD, its actually '[[:<:]]' and '[[:>:]]',thompsa2010-03-121-2/+2
| | | | change these functions to use better syntax and not grep at all.
* Check to see if processes are running before killingsullrich2009-12-021-1/+3
|
* Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additionsScott Ullrich2009-09-121-1/+6
|
* * Move other functions around to where it makes sense.Ermal Luçi2009-04-261-5/+0
| | | | | * Reduce somewhat require_once() overhead by removing the includes from gwlb.inc they are not needed. Some more analysis is needed on the include path
* Added custom_php_service_status_command support for packages.Eirik Oeverby2009-03-111-1/+8
| | | | | | | | | | | Package authors can define a custom_php_service_status_command block in their package XML. Such block should only contain function calls, and the first should be one to include their function library file if necessary, as this is not done by service-utils.inc. The return code of the last function call will be returned to the service check.
* Fix display of DHCP status on Status -> InterfacesChris Buechler2009-03-091-2/+1
|
* Add product_copyright re-branding supportScott Ullrich2007-12-161-1/+1
| | | | | | | | Add product_copyright_years re-branding support Add product_website re-branding support Add product_email re-branding support Work sponsored-by: Centipede Networks
* remove part of solution of problem solved elsewhereTimo Boettcher2007-06-211-4/+1
|
* Make OpenVPN usable in status_service.phpTimo Boettcher2007-06-211-43/+52
|
* * Fix release / renewScott Ullrich2006-12-231-5/+4
| | | | * Don't return immediately from dhclient to give it time to associate so we can return correct address back to status_interfaces.php
* Fix DHCP status on status_interfaces.php. Use find_dhclient_process() for test.Seth Mos2006-12-221-6/+7
|
* MFC 15382Scott Ullrich2006-11-191-1/+1
| | | | fix: is_process_running() does inaccurate matches
* Correctly start services from /usr/local/etc/rc.d/ first before any other methodScott Ullrich2006-09-301-2/+2
|
* Correctly start services from /usr/local/etc/rc.d/ first before any other methodScott Ullrich2006-09-301-2/+7
|
* MFC 12461Scott Ullrich2006-05-301-3/+2
| | | | "\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, totoScott Ullrich2006-04-081-1/+1
|
* If we cannot find a service executable for an item and we make it to the ↵Scott Ullrich2006-03-101-3/+6
| | | | bottom of stop_service() then simply killall service name
* Do one command or the otherScott Ullrich2006-01-301-3/+5
|
* Correctly detect start scriptScott Ullrich2006-01-301-1/+1
|
* Correctly detect start scriptScott Ullrich2006-01-301-1/+4
|
* Remove trailing newlineScott Ullrich2006-01-181-0/+2
|
* Use ps awuxScott Ullrich2005-11-131-1/+1
|
* MFC 7080 7084Scott Ullrich2005-10-231-10/+7
| | | | | Minor cleanup and comment out old $ps code for the time being. Fix backwards comment.
* Make sure service is stopped before startingScott Ullrich2005-10-071-0/+2
| | | | Ticket #590
* * Add is_dhcp_running()Scott Ullrich2005-08-121-0/+8
| | | | * Modify status_interfaces.php to use is_dhcp_running()
* is_process_running():Colin Smith2005-08-061-2/+2
| | | | | * grep -v grep * 2 -> 0
* * Add ascii art from holgerScott Ullrich2005-07-301-0/+2
| | | | * Add base services to status -> services menu
* Add restart_service_if_running.Colin Smith2005-07-191-0/+7
|
* Comment cleanupScott Ullrich2005-07-061-13/+0
|
* Various code cleanups and a few actual bugfixes courtesy of ZendBill Marquette2005-07-041-4/+3
|
* Add suggested fix for is_process_running(), which seems broken.Colin Smith2005-06-281-0/+13
|
* Whoops. Don't forget to merge.Colin Smith2005-06-261-22/+18
|
* Typos.Colin Smith2005-06-261-22/+26
|
* Make *_service less picky.Colin Smith2005-06-261-4/+4
|
* Revert is_service_running to rev 1.10.Colin Smith2005-06-261-1/+8
|
* Comment cleanupsScott Ullrich2005-06-261-8/+2
|
OpenPOWER on IntegriCloud