improvements to service class

The first commit adds some parameters to the service class to make it a little more configurable. The second teaches it about the newer init script versions which do support the status command.