Software >> OS >> Unix >> Solaris >> 11 >> How to change or set a particular environment variable for a service

e.g. to set env variable LD_PRELOAD to "libumem.so" for the cron service

# svccfg -s system/cron:default setenv LD_PRELOAD libumem.so