Configuring the proxy as a daemon on a Linux computer

If you install the proxy to a Linux computer, you can configure the proxy to run as a daemon process. You can set the proxy daemon to restart automatically whenever the computer is restarted.

You must have access to a superuser or root account to complete this task.
To configure the proxy as a daemon on a Linux computer:
  1. Open the command prompt.
  2. Enter the following commands at the command prompt, where proxy_folder is the directory in which the proxy is installed:
    cd proxy_folder
    ./setup-proxy-as-daemon.sh
    The script generates a script called optimproxy, which is saved to the proxy_folder directory.
  3. Log in as superuser, if you are not already logged in as superuser.
  4. Copy the script optimproxy to the /etc/rc.d/init.d directory.
  5. Enter the following commands at the command prompt.
    cd /etc/rc.d/init.d
    chmod 755 optimproxy
    /sbin/chkconfig --add optimproxy
To start the daemon, log in as superuser and enter the following command at the command prompt.
/sbin/service optimproxy start
To view the init levels at which the daemon is started or stopped, log in as superuser and enter the following command at the command prompt.
/sbin/chkconfig --list optimproxy
To stop the daemon, log in as superuser and enter the following command at the command prompt.
/sbin/service optimproxy stop
To remove the proxy daemon, log in as superuser and enter the following commands at the command prompt. Remove the proxy daemon before you uninstall the proxy.
/sbin/service optimproxy stop
/sbin/chkconfig --del optimproxy
rm /etc/rc.d/init.d/optimproxy