summaryrefslogtreecommitdiffstats
path: root/etc/inc/service-utils.inc
Commit message (Collapse)AuthorAgeFilesLines
* Added custom_php_service_status_command support for packages.Scott Ullrich2009-03-121-6/+7
| | | | | | | | | | | 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 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
|
* add a comment that if you change this function, ill kill ya.Scott Ullrich2005-06-251-0/+6
|
* Really make is_process_running() work as it should for the frickin 5th time.Scott Ullrich2005-06-251-2/+2
|
* Make is_process_running() work as it should for the frickin 5th time.Scott Ullrich2005-06-251-13/+3
|
* Move the actual ps component of is_service_running into is_process_running.Colin Smith2005-06-241-8/+17
|
* ps a -> ps axColin Smith2005-06-221-1/+2
|
* We need to start services in the background to prevent blocking.Colin Smith2005-06-221-1/+1
|
* More fixes.Colin Smith2005-06-221-6/+9
|
* Fixes and updates.Colin Smith2005-06-221-5/+6
|
* Add is_service_running.Colin Smith2005-06-221-0/+24
|
* Add executable.Colin Smith2005-06-221-1/+4
|
* Clean up restart_service.Colin Smith2005-06-221-8/+2
|
* Add functions for starting, restarting, and stopping services.Colin Smith2005-06-221-0/+66
|
* Make sure we're writing to a realistic prefix ;)Colin Smith2005-06-221-2/+1
|
* Add service-utils.inc and write_rcfile.Colin Smith2005-06-221-0/+58
OpenPOWER on IntegriCloud