Description of problem:
I have a deamon that rely on an environment variable, and I tried
to set it in a '/etc/sysconfig/mydaemon' script, read in by my
Using the 'daemon --user' function, I loose the environment I just
set up, bacause of the 'su -c' command used.
Do you think is possible to make daemon() to call 'su -m -c' instead?
Is there any drawback?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. export SOMEVAR='foobar'
2. daemon --user=you echo $SOMEVAR
Closing bugs on older, no longer supported, releases. Apologies for any lack of
Please try to reproduce this on a current release, such as Fedora Core 4. If the
issue persists, please open a new issue. Note that this moves to a new mechanism
(runuser) to execute such commands.