Restart agent when package is newly installed or upgraded