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

import com.github.aureliano.achmed.command.CommandResponse;

public class RedHatService extends LinuxService {

	public RedHatService() {
		super();
	}

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

	@Override
	public CommandResponse disableBootstrap() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}

	@Override
	public boolean isEnabledInBootstrap() {
		throw new UnsupportedOperationException("Not implemented yet.");
	}
}
@@ -42,16 +42,107 @@
 rvice;%0A%0A
+import org.apache.log4j.Logger;%0A%0Aimport com.github.aureliano.achmed.command.CommandFacade;%0A
 import c
@@ -251,39 +251,487 @@
 %0A%0A%09p
-ublic RedHatService() %7B%0A%09%09super
+rivate static final Logger logger = Logger.getLogger(RedHatService.class);%0A%09private static final String SERVICE = %22/sbin/service%22;%0A%09%0A%09public RedHatService() %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, 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 method to check whether service is running.