~alpine/users

2 2

RCinit and env variables

Details
Message ID
<476c66c4-c0c2-4693-90a1-694829417fbb@ecaf.be>
DKIM signature
missing
Download raw message
Hello,

I'm exploring more and more Alpine Linux for server, and I reallly like 
it! Thank you for all your job.

Now, I'm trying to build a rc-service. A quite simple one, but there is 
one thing I cannot achieve: setting a env variable for the command.

I have:

'''

command="/my_app/exec"

'''

And I want to have

'''

CONFIG_FILE=/home/user/file

'''

set for this command.

I try the classic:

'''

command="CONFIG_FILE=/home/user/file /my_app_exec"

'''

But I get

'''

CONFIG_FILE=/HOME/USER/FILE does not exist

'''

Can someone help me with this problem?

Thank you in advance,

Denis
Thomas J. Faughnan Jr. <thomas@faughnan.net>
Details
Message ID
<CZH23MWECRLR.O55MNMJ98PC@faughnan.net>
In-Reply-To
<476c66c4-c0c2-4693-90a1-694829417fbb@ecaf.be> (view parent)
DKIM signature
missing
Download raw message
Say your service's init script is /etc/init.d/myapp. Then you may put
`export CONFIG_FILE=/home/user/file` into the configuration file /etc/conf.d/myapp.
Details
Message ID
<00981e7c-26b7-44ee-a72a-62b7314660a6@ecaf.be>
In-Reply-To
<CZH23MWECRLR.O55MNMJ98PC@faughnan.net> (view parent)
DKIM signature
missing
Download raw message
Thank you for your quick response!
Reply to thread Export thread (mbox)