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:- Ensure that the server instance runs under a non-root user ID with the same name as the instance owner.
- 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 - Rename the script so that it matches the name of the server instance owner, for example, tsminst1.
- Set execute permissions on the new file chmod +x <install
dir>/server/bin/<instance>.
For example:
chmod +x /opt/Tivoli/tsm/server/bin/tsminst1 - If the server instance directory is not home_directory/tsminst1, locate the following line in the script copy:
Change the line so that it points to your server instance directory, for example:instance_dir="${instance_home}/tsminst1"instance_dir="/tsminst1" - In the script copy, locate the following
line:
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_instancename_su.pid# pidfile: /var/run/dsmserv_tsminst1_su.pid
Syntax
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.
