potiuk commented on a change in pull request #13232:
URL: https://github.com/apache/airflow/pull/13232#discussion_r546957406
##########
File path: airflow/utils/cli.py
##########
@@ -227,8 +227,12 @@ def setup_locations(process, pid=None, stdout=None,
stderr=None, log=None):
stdout = os.path.join(settings.AIRFLOW_HOME, f'airflow-{process}.out')
if not log:
log = os.path.join(settings.AIRFLOW_HOME, f'airflow-{process}.log')
+
if not pid:
pid = os.path.join(settings.AIRFLOW_HOME, f'airflow-{process}.pid')
+ else:
+ if not os.path.isabs(pid):
+ raise AirflowException("Path of PID file must be absolute")
Review comment:
As far as I see the "https://linux.die.net/man/1/daemonize" command
prints `The 'path' parameter must be an absolute path name` error when passed a
relative one. I am not very strong on that, but I think this is expected from
a "daemon" program.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]