How do I add or modify environment variables for systemd service that does not already support setting via file in /etc/sysconfig/ directory?
Issue
- How do I add or modify environment variables for systemd service that does not already support setting via file in /etc/sysconfig/ directory?
 - How can I change 
PGDATAorPGPORTforpostgresqlwhen starting viasystemd? - How do I customize a unit file/ add a custom unit file to systemd?
 
Environment
Red Hat Enterprise Linux (RHEL) 7, 8, 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.