I am running a Redis server on a RHEL system that requires processes to update their AFS authentication tokens every 24 hours.
In the client-side code that posts data to the database, I can update the AFS token by calling a shell command every N POST requests (e.g. echo PASSWORD | kinit && aklog
.
I would like to achieve something similar in the server process, but am not sure how to do so. Are there any "post-receive-data" callback style hooks that one can use to run a shell command from within a Redis server process? I would be very grateful for any advice others can offer on this question.