Configuring the management server as a daemon on a Linux computer

If you deploy the management server to WebSphere Application Server Community Edition on Linux, you can configure the management server to run as a daemon process. You can set the management server 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 management server as a daemon on a Linux computer:
  1. Open the command prompt.
  2. Enter the following commands at the command prompt, where server_location is the directory in which WebSphere® Application Server Community Edition is installed:
    cd server_location/bin
    ./setup-mgmtserver-as-daemon.sh
    The script generates a script called optimmgmtserver, which is saved to the server_location/bin directory.
  3. Log in as superuser, if you are not already logged in as superuser.
  4. Copy the script optimmgmtserver 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 optimmgmtserver
    /sbin/chkconfig --add optimmgmtserver
To start the daemon, log in as superuser and enter the following command at the command prompt.
/sbin/service optimmgmtserver 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 optimmgmtserver
To stop the daemon, log in as superuser and enter the following command at the command prompt.
/sbin/service optimmgmtserver stop
To remove the management server daemon, log in as superuser and enter the following commands at the command prompt. Remove the management server daemon before you uninstall WebSphere Application Server Community Edition.
/sbin/service optimmgmtserver stop
/sbin/chkconfig --del optimmgmtserver
rm /etc/rc.d/init.d/optimmgmtserver