Otherwise you have two options. Add an [Environment] section to your service.

Or add a .conf file containing the [Environment] section. Somewhere like this:

/etc/systemd/system/.d/override.conf

But if your goal is to use a single .env for configuring the service then you may want to go with dot sourcing the .env file.

Reply to this note

Please Login to reply.

Discussion

No replies yet.