Project

General

Profile

Actions

Bug #999

closed

vhosts does not show up as started

Added by Moshe Katz over 13 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
vhosts
Target version:
-
Start date:
11/07/2010
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
Affected Plus Version:
Affected Architecture:

Description

In pfSense 1.x, checking whether a service was started was done using ps axwu | grep '\b{$process}\b' | grep -v 'grep'.
In 2.0, this checking is done using pgrep -x {$process}.

The vhosts package uses the same executable name as the webconfigurator so it checks whether it is running by using "vhosts-http" (the config file name) as $process. That works in the old way because the config file shows up in the ps listing.

However, pgrep only checks the program names so the vhosts service always appears stopped in the services manager.

Actions

Also available in: Atom PDF