title: Python: Send Signal to Process via PID File
body: <p>A similar question is already asked <a href="https://stackoverflow.com/questions/17856928/how-to-terminate-process-from-python-using-pid">here</a>, but my question is very specific: I don't have a PID, but a PID <em>file</em>. Is there a cleaner way of doing this other than reading the file myself? Preferably without an extra module to install.</p>
  
  <p>To avoid an XY problem, what I really want to do is to issue this in Python: <code>pkill -HUP rsyslogd</code>. I am asking because I thought of <code>os.kill(pid_file, signal.SIGHUP)</code>, but if there is a different idea for doing what I want, that's more than welcome.</p>