Update common.py

Ensuring metadata-agent is restarted after configuring