I wish to run TOMCAT with my current user's permissions, not the root's environment variables.
vagrant@dev:~/Workspace/eurekastreams$ echo $JAVA_OPTS
-Xmx1024m -XX:MaxPermSize=128m -Dlog.home=/home/vagrant/Workspace/software/
I tried, vagrant$>sudo -E /etc/init.d/tomcat7 start
.
However, my software is not logging to the /home/vagrant/Workspace/software directory, which means, I believe, that the JAVA_OPTS environment variable was not set.
Am I understanding sudo -E correctly that it will perform a command with env vars of the current user?