bmc / daemonize

Command line utility to run a program as a Unix daemon
http://software.clapper.org/daemonize/
Other
558 stars 97 forks source link

Environment variables #19

Closed ankitsharda closed 9 years ago

ankitsharda commented 9 years ago

is it possible to set the environment variables for a process that is being run using daemonize ?

e.g. if I am daemonizing a process abc using daemonize, is it possible to set the variable LD_PRELOAD for it and run it in daemonize as well ? or does the process inherit the environment variables of the user that we run it as in daemonize (-u option)

ankitsharda commented 9 years ago

just realised that there is a -E option for this. trying this out

ankitsharda commented 9 years ago

This works too with the -E option. Thanks Brian. Daemonize is pretty good :-)