I have vague memories of a story. I am pretty sure it is a short story. I can't think how it would be fleshed out to be a novel, or movie. It is possible it might have been an episode of a TV show like The Twilight Zone or The Outer Limits.
I probably read or saw it in the '80s.
It was set in a smaller remote quiet town (population a hundred or less.)
The protagonist is a sheriff or police chief. He notices a few people acting a bit off, or strange, but I don't believe bad enough that he needs to intervene. He also sees more people than usual are visiting the town doctor. It is possible it was the town funeral mortician instead of the doctor. It was mostly women who were visiting and he was thinking they might be just "fooling around" instead of doing business.
He discovers his wife is also visiting and suspects she is having an affair, so he goes there and looks in the office window trying to see what they are doing. I can't remember if he just sees her getting patched up, or if there actually was an affair also.
He rushes inside to confront the doctor/mortician and it is revealed that the sheriff/chief is also one of the dead. The doctor tells him something like: "Don't you remember your car accident xx months ago? You died, and I brought you back."
What's going on is, anytime someone dies, the doctor/mortician, brings them back to life, patches them up and they resume their life (sort of a voodoo thing.) He may also be initiating sex with the women too after bringing them back, and any time they come back for treatment.
When they injure themselves, or start acting strange, they come back for treatment and he fixes/patches them up and they return to their lives. He has by now puppeted most of the people in the town.