Refactored block to bash resource and added ubuntu upstart customization