restart only if repository's active state really changed