1.4.3424: EnvironmentFile should recognize "%p" Specifier
See original GitHub issueMy app.service file contains the following:
Environment=JAVA_OPTIONS=-Xmx4000m
EnvironmentFile=-/etc/default/%p
/etc/default/app
contains
JAVA_OPTIONS=-Xmx2222m
However EnvironmentFile is not loaded and service starts with default -Xmx4000m
parameter.
With hard-coded file name EnvironmentFile=-/etc/default/app
works properly.
Please support some basic Specifiers (at least %p
), as per specification. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have created a testcase “make real_3270” which shows the special variable expansion of the installed systemd systemctl. In comparison the “make test_3270” using systemctl3.py show some differences. That’s where the real bugs are.
I just don’t have time to work on it now (develop branch).
Please check also the 1.5.x branch which is now in master. The expansion of special variables has changed considerably and %p specifier should not be an issue anymore.