Linux operating systems

Server startup script: dsmserv.rc

You can use the dsmserv.rc script to stop a server instance, or to manually or automatically start a server.

Prerequisites

Before you issue the DSMSERV.RC command, complete the following steps:
  1. Ensure that the server instance runs under a non-root user ID with the same name as the instance owner.
  2. Copy the <install dir>/server/bin/dsmserv.rc script to match the name of the server instance owner.

    For example, if the server instance owner is tsminst1, issue the following command:

    cp /opt/tivoli/tsm/server/bin/dsmserv.rc /opt/tivoli/tsm/server/bin/tsminst1
  3. Rename the script so that it matches the name of the server instance owner, for example, tsminst1.
  4. Set execute permissions on the new file chmod +x <install dir>/server/bin/<instance>.

    For example:

    chmod +x /opt/Tivoli/tsm/server/bin/tsminst1
  5. If the server instance directory is not home_directory/tsminst1, locate the following line in the script copy:
    instance_dir="${instance_home}/tsminst1"
    Change the line so that it points to your server instance directory, for example:
    instance_dir="/tsminst1"
  6. In the script copy, locate the following line:
    # pidfile: /var/run/dsmserv_instancename_su.pid
    Change the instance name value to the name of the server instance owner. For example, if the server instance owner is tsminst1, update the line as shown:
    # pidfile: /var/run/dsmserv_tsminst1_su.pid

Syntax

Read syntax diagramSkip visual syntax diagramdsmserv.rcstartstopstatusrestart

Parameters

start
Starts the server.
stop
Stops the server.
status
Shows the status of the server. If the status is started, the process ID of the server process is also shown.
restart
Stops the server and starts it again.