a similar question asked here, question specific: don't have pid, pid file. there cleaner way of doing other reading file myself? preferably without module install.
to avoid xy problem, want issue in python: pkill -hup rsyslogd
. asking because thought of os.kill(pid_file, signal.sighup)
, if there different idea doing want, that's more welcome.
the pid file contains pid? should work:
pid = int(open(pid_file).read())
Comments
Post a Comment