I have two custom service unit descriptions that are enabled to run on startup. Both of them have EnvironmentFile definitions that point to /etc/servicename.env and include a handful of variable assignments. Both of them work fine when run from `systemctl start`. One of them runs fine on startup after `systemctl enable`, but the other doesn't.
Here's what `systemctl status` tells me about the failed service:
$this->bbcode_second_pass_code('', 'wsgw.service - WebSockets Gateway for pianod
Loaded: loaded (/usr/lib/systemd/system/wsgw.service; enabled)
Active: inactive (dead) since Wed 1969-12-31 16:00:08 PST; 43 years 2 months ago
Process: 131 ExecStart=/usr/sbin/wsgw $PORT $LOGGING $SERVICES (code=exited, status=0/SUCCESS)')
So apparently the service fails because the ExecStart line still has these dorky variable strings instead of the proper substitutions. I diffed the /etc/systemd and /usr/lib/systemd versions of the service unit description and they're the same. When I then run `systemctl start` with the same service unit, it works and the status line shows the proper variable substitutions. What's going wrong?
Thanks in advance.