azlux / log2ram

ramlog like for systemd (Put log into a ram folder)
MIT License
2.65k stars 195 forks source link

log2ram improvement when repeated start) is executed #235

Open HoTschir opened 2 months ago

HoTschir commented 2 months ago

repeated start) (without stop) does not cause additional "mount --bind" anymore

azlux commented 2 months ago

I agree with this change, it's a security, but I don't understand the use. In which cases would there be multiple starts?

HoTschir commented 2 months ago

In which cases would there be multiple starts?: Mistakes that can be made are made, e.g. giving "log2ram start" at command line (outside of systemd habitat) for intensive log2ram regression tests. By the way - funny fact: "log2ram stop" of course will stop the tmpfs logging, while "systemctl status log2ram" still shows "active" whithout any problems. You are free to accept or refuse the request. Don't want to discuss about it further.