hard linking banfile for multi-server bans?
-
- Private First Class
- Posts: 24
- Joined: Sun Jul 01, 2018 12:17 am
- Location: Dallas, TX
hard linking banfile for multi-server bans?
Could I create a single banfile and just hard link to it in other directories so that other bzfs servers see the same changes (because the hardlinks are pointing back to the original)? Or can you just use the same banfile for all servers without locking issues or race conditions? Thanks...
Re: hard linking banfile for multi-server bans?
You don't even need to hard link. You can use symlinks to a shared file. I believe when you ban/unban someone it reloads the banlist from disk prior to that. Additionally, the serverControl plugin can be used to automatically reload the ban file when the file changes, so a ban on one server will quickly show up on all servers.
-
- Private First Class
- Posts: 24
- Joined: Sun Jul 01, 2018 12:17 am
- Location: Dallas, TX
Re: hard linking banfile for multi-server bans?
Similar question: does reportfile get accessed using flock() ?? Safe IO or risk of truncate on race condition if two servers share the file and a /report is made simultaneously?
Re: hard linking banfile for multi-server bans?
I'd keep report files separate so you know which server a report was filed on.