env

env allow the environment variables to be set specifically for a utility that is executed.

The following sets the minidlna_flags variable which is used by /etc/rc.d/minidlna.

env minidlna_flags="-R" /etc/rc.d/minidlna restart

This should not have any effect on current shell context.