set env variables in shell before restarting app