There are many types of hauntings, intelligent, poltergeist, spirits, demonic and then you have Residual Energy hauntings.
Genius Loci or The spirit of a place as it is also referred to could be looked upon as the residual energies of those that lived, still live, died and visited the place, each and one of them leaving some residual imprint that now and then repeat part of the things that happened there in the form of residual energy released in the form of a repetitive energy haunting, this is a non-intelligent residual energy haunting.
We create energy everyday. Our bodies give off energy. So residual energy is like an imprint of what we created. Every time you become happy, sad or feel fear, anger or, love you create an imprint of energy. A strong energy imprint can last for many many years and it seems to become recharged when similar events or emotional energy repeats itself in the place, like that of a married couple arguments or reenactments refuels the genius loci of the things that happened decades and centuries before.
If you hear a sound or, see a apparition or a shadow almost anything at the same time of day or night then you might be experiencing residual energy. Residual energy is stirred up by the living when we do or say something that has to do with the reason the energy imprint was left in the first place. It is we the living that stir up residual energy.
To the best of my knowledge, residual energy cannot harm you because it is not intelligent. It is only activated by the people around it and, it can not communicate with the living. It has been said before that almost half of all hauntings, are residual hauntings. Therefore, those are not haunted at all. they are simply left over energy from a person or an event that a person went through.
That person could indeed be dead but that person who left that energy imprint could very well still be alive. However, as I stated earlier if a person is dead then if that person left residual energy, only a person who is still alive can stir that energy up and get it going.
Residual energy has no intelligence. It has no feeling or will of it's own. It has no control over anything at all it is in effect a reflection and recollection of what once was, but still is in full represents the atmosphere of that location. Intelligent haunting can also get refueled by similar events repeating themselves in the area but then this is because of the spirit recognizes what is happening to be similar to what might have caused their demise and inability to let go of the location in the first place.
These residual energies would feel like they are good, evil or neutral depending on the imprints that the genius loci are built up of.