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
PGDATA
orPGPORT
forpostgresql
when starting viasystemd
? - How do I customize a unit file/ add a custom unit file to systemd?
Environment
Red Hat Enterprise Linux (RHEL) 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.