Linux: Automatically starting servers on Linux systems
To automatically start a server on a Linux operating system, use the dsmserv.rc script.
Before you begin
Ensure that kernel parameters are set correctly. For instructions, see Tuning kernel parameters for Linux systems.
Ensure that the server instance runs under the instance owner user ID.
Ensure that access rights and user limits are set correctly. For instructions, see Verifying access rights and user limits.
About this task
The dsmserv.rc script can be used either to start the server manually or to start the server automatically by adding entries to the /etc/rc.d/init.d directory. The script works with Linux utilities such as CHKCONFIG and SERVICE.
Procedure
For each server instance that you want to automatically start, complete the following steps:
Example
This example uses the following values:
- The instance owner is tsminst1.
- The server instance directory is /home/tsminst1/tsminst1.
- The dsmserv.rc script copy is named tsminst1.
- The CHKCONFIG utility is used to configure the script to start at run levels 3, 4, and 5.
cp /opt/tivoli/tsm/server/bin/dsmserv.rc /etc/rc.d/init.d/tsminst1
sed -i 's/dsmserv_instancename.pid/dsmserv_tsminst1.pid/' /etc/rc.d/init.d/tsminst1
chkconfig --list tsminst1
service tsminst1 supports chkconfig, but is not referenced in
any runlevel (run 'chkconfig --add tsminst1')
chkconfig --add tsminst1
chkconfig --list tsminst1
tsminst1 0:off 1:off 2:off 3:off 4:off 5:off 6:off
chkconfig --level 345 tsminst1 on
chkconfig --list tsminst1
tsminst1 0:off 1:off 2:off 3:on 4:on 5:on 6:off