Testing OS: RHEL7
Required OSs: RHEL & Derivatives & AIX
I have a user that was created as follows:
sudo groupadd madt
sudo useradd -r -g madt -s /bin/false madt
That user is being used in a systemd
service as follows:
[Unit]
Description=MicroStrategy Mobile Access Distribution Tool
After=syslog.target
[Service]
User=madt
ExecStart=/usr/bin/java -jar /opt/pandera/mobile-registration/mobile-access-distribution-tool-1.0.0.jar --spring.config.location=/opt/pandera/mobile-registration/
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
The java app requires that an environment variable be present. I've set the variable in /etc/environment
and confirmed that it works for root and all other interactive users.
How can I get the madt user to recognize my environment variable?