Refactor starting/stopping service for different init systems
Handle external command errors