Implements status action

I've implemented a status action to the init script.