package com.github.aureliano.achmed.os.service;

import org.apache.log4j.Logger;

import com.github.aureliano.achmed.command.CommandResponse;
import com.github.aureliano.achmed.os.Debian;
import com.github.aureliano.achmed.os.Linux;

public class DebianService extends LinuxService {

	private static final Logger logger = Logger.getLogger(DebianService.class);
	
	private Linux linux;
	
	public DebianService() {
		this.linux = new Debian();
	}

	public CommandResponse enableBootstrap() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}

	public CommandResponse disableBootstrap() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}
}
@@ -125,23 +125,21 @@
 .Command
-Respons
+Facad
 e;%0Aimpor
@@ -172,62 +172,31 @@
 med.
-os.Debian;%0Aimport com.github.aureliano.achmed.os.Linux
+command.CommandResponse
 ;%0A%0Ap
@@ -322,18 +322,16 @@
 class);%0A
-%09%0A
 %09private
@@ -335,74 +335,405 @@
 ate 
-Linux linux;%0A%09%0A%09public DebianService() %7B%0A%09%09this.linux = new Debian
+static final String SERVICE_APP = %22service%22;%0A%09%0A%09public DebianService() %7B%0A%09%09super();%0A%09%7D%0A%09%0A%09@Override%0A%09public boolean isRunning() %7B%0A%09%09if ((super.properties.getHasStatus() != null) && (super.properties.getHasStatus())) %7B%0A%09%09%09CommandResponse res = CommandFacade.executeCommand(SERVICE_APP, super.properties.getName(), %22status%22);%0A%09%09%09return (res.getExitStatusCode() == 0);%0A%09%09%7D%0A%09%09%0A%09%09return super.isRunning
 ();%0A

Implement statuc process check.