I have an Arch Linux system with systemd and I've created my own service. The configuration service at /etc/systemd/system/myservice.service
looks like this:
[Unit]
Description=My Daemon
[Service]
ExecStart=/bin/myforegroundcmd
[Install]
WantedBy=multi-user.target
Now I want to have an environment variable set for the /bin/myforegroundcmd
. How do I do that?