Skip to content

service environment variables are not expanded when sourced #377

@az143

Description

@az143

when setting up an /etc/default/somesvc, it is currently not possible to reference variables defined earlier, because
source_env() only strips undesirable bits before calling setenv().

for example, this construction doesn't work:

RUNDIR=/var/run/somesvc
DAEMON_ARGS=--workdir $RUNDIR --other-args...

i think that running wordexp() before the setenv() calls would remove this limitation; if that's not true,
then the limitation should be mentioned in doc/config.md and man/finit.conf.5.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions