I'm learning about logrotate configs. So I've been reading the man page for commands and looking at logrotate configs for specific application logs, I see the snipit below often. (Centos 6.8 and below environments)
postrotate /bin/kill -HUP `cat /var/run/XXX.pid 2>/dev/null` 2> /dev/null || true endscript
or something along these lines. My question is if the process I need to
kill -HUP (which by the way I can't find in
kill --help or
man kill or
man signal) is not in
/var/run/xx.pid how do I stop the process from still writing to the file ? I know how to kill a process but I just want to stop it from writing the file, or make it re-read the file descriptor, like the example above, or at least I thinks that's what it does.