Some progress on service configuration
This commit is contained in:
parent
29def452b6
commit
ab7296198a
10 changed files with 138 additions and 84 deletions
|
|
@ -33,11 +33,18 @@ import java.io.IOException;
|
|||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class ApacheStatus implements WAServiceStatus {
|
||||
public class ApacheStatus extends WAServiceStatus {
|
||||
private static final Logger log = LogUtil.getLogger();
|
||||
private static OSAbstractionLayer os = OSAbstractionLayer.getInstance();
|
||||
private static final String PID_FILE = "/var/run/apache2.pid";
|
||||
|
||||
private static OSAbstractionLayer os = OSAbstractionLayer.getInstance();
|
||||
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return ApacheService.SERVICE_NAME;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void start() {
|
||||
os.runCommand("service apache2 start");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue