Change 33270

tom_tyler (C. Thomas Tyler)
C. Thomas Tyler committed this change into //p4lf/dev
Request Review
Download .zip
Fix p4lf.service: EnvironmentFile= cannot source p4_vars (a real shell script),
causing P4LOG/LOGS to never be set and the service to fail on fresh install (P4LF-3).

Replaced EnvironmentFile=-/p4/common/bin/p4_vars with an ExecStart bash -c wrapper
that actually sources p4_vars <instance> and execs the p4lf binary. This also fixes
an unrelated latent risk noted during review: the old '-' prefix on EnvironmentFile
silently ignored a missing/unreadable p4_vars file; the new wrapper aborts immediately
(non-zero exit, clear stderr message) if p4_vars is missing, instead of silently
proceeding without P4LOG/LOGS set.
  • Files 2
  • Comments 0
1 edited 1 added 0 deleted
ai/session_log_2026-08-25.md#1
Loading...
p4lf.service#2
Loading...
Tip: Use n and p to cycle through the changes.