Extending init.d and moving startup logic there