Added logic to handle 2 restarts for initial selinux configuration.