Custom environment variable on Linux has no effect #2826
-
Somewhat stupid question that burned me out already. According to this wiki page I succesfully installed ASF service in my Debian 11 VPS. How can I set custom environment variable for ASF systemd service for Linux? /etc/asf/asf file now contains only one string that I've seen here: During my awesome journey through manuals there was idea that the file must be owned by the service user - asf, and not by root. So latter latter tries was by asf user ownership.
/etc/systemd/system/[email protected]/override.conf
Ofc I can just set configs to read-only as stated here, but I want to understand my mistake. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hmmm, ASF binary doesn't read |
Beta Was this translation helpful? Give feedback.
Hmmm,
--no-config-migrate
is cmdline arg, not environment variable, so it won't work through/etc/asf/asf
. You'd actually need to overrideExecStart
to include it as part of cmdline, which is not what I'd like people to do. Yes, you can, with systemd it's also very simple and versatile, but it's not what I'd expect from people to do just to enable that option.ASF binary doesn't read
ASF_ARGS
, it's our bash magic forsh
script which then converts it for ASF to use. Perhaps the correct thing is to make ASF binary read it directly instead. Adding on todo.#2827