Configuring an application server to run as a service

Application servers can be configured to run as Windows services. Windows services can be set up to start automatically when a user logs in to the system.

To configure an application server to run as a service:

  1. Make sure the application server is installed and functions correctly.
  2. Make sure the RICOH ProcessDirector is connected to the application server:
    1. Log in to RICOH ProcessDirector.
    2. Go to Administration Objects Servers and verify the application server is connected.
  3. Log in to the Windows computer that the application server is installed on.
  4. Stop the application server. Use the Stop application server link in the RICOH ProcessDirector start menu folder.
  5. Windows services do not automatically have access to mapped network drives. The mountaiwdata.bat file grants access to these mapped network drives. Edit the provided mountaiwdata.bat file to automatically mount the shared drive for the service:
    1. Go to C:\Program Files\Ricoh\ProcessDirector\bin.
    2. Make a copy of the file mountaiwdata_sample.bat and rename it to mountaiwdata.bat. If you are upgrading or reinstalling the system, already have the mountaiwdata.bat file, and want to keep your previous settings, you do not have to do this step.
    3. Open mountaiwdata.bat and include commands to mount the drive and map it to the drive letter that you have previously set up.

      For example, if you use Samba and Windows file sharing to map your drive, your BAT file contents might include commands such as:

      • net use /delete <drive_letter>:
      • net use <drive_letter>: \\<primary_host_name>\aiw /user:<primary_host_name>\aiw1 <password> /persistent:yes

      where <drive_letter> is your mapped application server drive, <primary_host_name> is the name of the server RICOH ProcessDirector is installed on, and <password> is your system password for the RICOH ProcessDirector system user ( aiw1 is the default system user).

      If you use NFS and Windows file sharing to map your drive, your BAT file contents might include commands such as:

      mount -o anon \\<primary_host_name>\aiw <drive_letter>

      where <primary_host_name> is the name of the server RICOH ProcessDirector is installed on and <drive_letter> is your mapped application server drive.

    4. Make sure that the drive is not currently mapped, then run mountaiwdata.bat. When it finishes, open Windows Explorer and make sure that the drive is mapped and connected.
  6. Install the application server service:
    1. Start a command prompt as an administrator. Even if you are logged on to your system as an administrator, you must start the command prompt by selecting Run as administrator from the right-click menu.
    2. Go to C:\Program Files\Ricoh \ProcessDirector\bin.
    3. Type aiwsvc install and press Enter. This installs the application server service.
    4. Open the Windows Services window and look for the Ricoh Process Director Application Server service to make sure the application service installed.
  7. Optional: Set the application server service to run as a local administrator user.
      Note:
    • The application server service can run as a local administrator user service or a LocalSystem service (default). If it runs as a LocalSystem service, a password is not required. If it runs as a local administrator service, Windows requires a password for the user.
    1. In the Windows Services window, right-click the Ricoh Process Director Application Server service and select Properties.
    2. In the Log On tab, select This Account and specify the user and password.
    3. Click OK.
  8. In the Windows Services control panel, right-click the Ricoh Process Director Application Server service and select Start.
  9. Verify the application server service has started. In the Windows Services control panel, the status should read Started. In RICOH ProcessDirector, go to Administration Objects Servers and verify the application server is connected and that the startup type is set to Automatic.