def process_id_file(self, process_name: str): # type: ignore """ Context manager API to generate process identification files (pid) in the current :meth:`pid_dir`. .. code-block:: python trinity_config.process_id_file('networking'): ... # pid file sitting in pid directory while process is running ... # pid file cleaned up """ with PidFile(process_name, self.pid_dir): yield
def process_id_file(self, process_name: str): # type: ignore with PidFile(process_name, self.pid_dir): yield