Project

General

Profile

Download (5.93 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
05c4bfa0 03/01/2011 11:40 PM Ermal LUÇI

Pass the -a parameters to pgrep to be certain we search ancestors as well. The side effects might be inoquos from the pfSense context.

9734b054 11/10/2010 05:00 PM Scott Ullrich

Remove trailing carriage return

4dddf8c3 10/10/2010 01:12 PM Warren Baker

Cosmetic change from product_website to product_name

aeebce1b 10/06/2010 04:18 AM Erik Fonnesbeck

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.

af799b48 09/20/2010 03:58 PM Renato Botelho

Fix write_rcfile() declaring $rcfileprefix as global and touching rcfile before check if it is writable

22d323b3 09/08/2010 04:06 AM Erik Fonnesbeck

Fix variable name typo in status_services.php and fix return value of is_pid_running. Fixes #877

319cbd5e 08/31/2010 07:11 PM Ermal LUÇI

Correct binaries and find_dhclient_process

c2151973 08/31/2010 07:03 PM Ermal LUÇI

$g is needed here.

ba8495f0 08/31/2010 07:01 PM Ermal LUÇI

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.

246a887a 08/31/2010 05:55 PM Ermal LUÇI

Bring up openvpn up to speed and try to bring this file near to useful/readable.

6661ea25 03/12/2010 12:28 AM Andrew Thompson

Use procatat instead of ps as the latter always prints a header, also
use full paths.

cae1b7db 03/12/2010 12:18 AM Andrew Thompson

'\b' is not the word boundary on BSD, its actually '[[:<:]]' and '[[:>:]]',
change these functions to use better syntax and not grep at all.

99f98b80 12/03/2009 04:25 AM Scott Ullrich

Check to see if processes are running before killing

523855b0 09/12/2009 07:34 PM Scott Ullrich

Add pfSense_BUILDER_BINARIES: and pfSense_MODULE: additions

6dc3a5c2 04/26/2009 01:47 PM Ermal Luçi
  • Move other functions around to where it makes sense.
  • 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
c2d49311 03/11/2009 10:05 PM Eirik Oeverby

Added custom_php_service_status_command support for packages.

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...

f2a5b5e4 03/10/2009 02:14 AM Chris Buechler

Fix display of DHCP status on Status -> Interfaces

36d0358b 12/16/2007 08:43 PM Scott Ullrich

Add product_copyright re-branding support
Add product_copyright_years re-branding support
Add product_website re-branding support
Add product_email re-branding support

Work sponsored-by: Centipede Networks

2cd5c340 06/21/2007 01:07 PM Timo Boettcher

remove part of solution of problem solved elsewhere

cd72ded3 06/21/2007 01:01 PM Timo Boettcher

Make OpenVPN usable in status_service.php

ca88e48f 12/23/2006 12:00 AM Scott Ullrich
  • Fix release / renew
  • Don't return immediately from dhclient to give it time to associate so we can return correct address back to status_interfaces.php
fda8dc28 12/22/2006 04:55 PM Seth Mos

Fix DHCP status on status_interfaces.php. Use find_dhclient_process() for test.

f80f3194 11/19/2006 06:55 PM Scott Ullrich

MFC 15382
fix: is_process_running() does inaccurate matches

34f7437f 09/30/2006 01:47 AM Scott Ullrich

Correctly start services from /usr/local/etc/rc.d/ first before any other method

4685e464 09/30/2006 01:44 AM Scott Ullrich

Correctly start services from /usr/local/etc/rc.d/ first before any other method

5b67f7ac 05/30/2006 07:50 PM Scott Ullrich

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.

0e16b9ca 04/08/2006 02:04 AM Scott Ullrich

We're in 2006 now, toto

b39dc701 03/10/2006 11:01 PM Scott Ullrich

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

a4ea3340 01/30/2006 03:23 AM Scott Ullrich

Do one command or the other

2fc057fd 01/30/2006 03:21 AM Scott Ullrich

Correctly detect start script

c19a49e0 01/30/2006 03:20 AM Scott Ullrich

Correctly detect start script

ff074bf9 01/18/2006 09:05 PM Scott Ullrich

Remove trailing newline

6a3464b7 11/13/2005 12:13 AM Scott Ullrich

Use ps awux

c2b6723a 10/23/2005 05:36 PM Scott Ullrich

MFC 7080 7084
Minor cleanup and comment out old $ps code for the time being.
Fix backwards comment.

2523de53 10/07/2005 11:57 PM Scott Ullrich

Make sure service is stopped before starting

Ticket #590

8ff8520f 08/12/2005 09:59 PM Scott Ullrich
  • Add is_dhcp_running()
  • Modify status_interfaces.php to use is_dhcp_running()
d96e7a05 08/06/2005 11:17 PM Colin Smith

is_process_running(): * grep -v grep * 2 -> 0

25d3fbd5 07/30/2005 11:01 PM Scott Ullrich
  • Add ascii art from holger
  • Add base services to status -> services menu
0661a033 07/19/2005 07:49 AM Colin Smith

Add restart_service_if_running.

d1a87413 07/06/2005 07:20 PM Scott Ullrich

Comment cleanup

669e1adb 07/04/2005 09:00 PM Bill Marquette

Various code cleanups and a few actual bugfixes courtesy of Zend

8f24e17c 06/28/2005 12:43 AM Colin Smith

Add suggested fix for is_process_running(), which seems broken.

a8dbad89 06/26/2005 07:29 AM Colin Smith

Whoops. Don't forget to merge.

636ab238 06/26/2005 07:24 AM Colin Smith

Typos.

58f8fb10 06/26/2005 04:27 AM Colin Smith

Make *_service less picky.

1f846058 06/26/2005 03:57 AM Colin Smith

Revert is_service_running to rev 1.10.

1c4ec345 06/26/2005 02:59 AM Scott Ullrich

Comment cleanups

35916668 06/25/2005 11:14 PM Scott Ullrich

add a comment that if you change this function, ill kill ya.

750ad167 06/25/2005 11:07 PM Scott Ullrich

Really make is_process_running() work as it should for the frickin 5th time.

4c943221 06/25/2005 11:06 PM Scott Ullrich

Make is_process_running() work as it should for the frickin 5th time.

fbeb6d02 06/24/2005 12:33 AM Colin Smith

Move the actual ps component of is_service_running into is_process_running.

815af8fb 06/22/2005 07:34 PM Colin Smith

ps a -> ps ax

b9083801 06/22/2005 07:13 PM Colin Smith

We need to start services in the background to prevent blocking.

58826c73 06/22/2005 04:25 AM Colin Smith

More fixes.

a93f79c1 06/22/2005 04:22 AM Colin Smith

Fixes and updates.

ec4e071a 06/22/2005 03:46 AM Colin Smith

Add is_service_running.

dc312bf5 06/22/2005 03:32 AM Colin Smith

Add executable.

1ffc911a 06/22/2005 03:29 AM Colin Smith

Clean up restart_service.

31f346a8 06/22/2005 03:28 AM Colin Smith

Add functions for starting, restarting, and stopping services.

b662f54f 06/22/2005 03:17 AM Colin Smith

Make sure we're writing to a realistic prefix ;)

c83068f6 06/22/2005 03:16 AM Colin Smith

Add service-utils.inc and write_rcfile.