Add functions to check if the process is running; configurable termination signal