Navigate to the respective directory, create the configuration file, and define the environment variable.
Navigate to the file.
/etc/init/mfetpd.confCreate a configuration file <proxyConfigFileName> in the
/etc/defaultdirectory.Declare and export the environment variable of proxy in the
<proxyConfigFileName>file.env http_proxy="http://username:usernamepassword@sampleproxy.url:5678" export http_proxy
Save the <proxyConfigFileName> file, and make sure that the file has execute permission.
Navigate to the file
/etc/init/mfetpd.confIn the script section of upstart file, add this command to allow your environment variables to be set for that process.
./etc/default/<proxyConfigFileName>