Also, it's okay to be distracted when doing your routine as long as it doesn't require all of your attention but if it does, then eliminate all distractions and then begin your routine.
For the long term, set a minimal amount of work to be done daily and then always do more than that amount. If on some days you really really don't feel like doing it, then do only the minimal amount you've set for yourself. That way, you won't have skipped your routine and continue with your habit formation.
Hope this helps!