For the environment variables to work correctly when JobServer is started using systemctl, you have to use either an Environment or an EnvironmentFile directive. Solution 1 [Unit]
Requires=coreos-metadata.service
After=coreos-metadata.service
[Service]
EnvironmentFile=/run/metadata/coreos Solution 2 [Service]
# Client Env Vars
Environment=ETCD_CA_FILE=/path/to/CA.pem More information, see Using environment variables in systemd units |