redhat agent init script causes errors