question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1.4.3424: EnvironmentFile should recognize "%p" Specifier

See original GitHub issue

My 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:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gdraheimcommented, May 5, 2020

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).

0reactions
gdraheimcommented, Aug 9, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found