Automatically starting servers on Linux systems
You can automatically start a server on a Linux® operating system by using the systemd or System V initialization system.
Automatically starting the server by using systemd initialization
To automatically start a server on a Linux® operating system by using the systemd initialization system, configure and run the dsmserv.rc script.
Before you begin
Ensure that either the /usr/bin/systemctl or the /bin/systemctl utility is installed on the system.
Ensure that the server instance runs under a nonroot user ID with the same name as the instance owner.
About this task
You can use the dsmserv.rc script to automatically start or stop a server instance.
Procedure
For each server instance that you want to automatically start, complete the following steps:
Automatically starting the server by using System V initialization
To automatically start a server on a Linux operating system by using the System V initialization system, configure and run the dsmserv.rc script.
Before you begin
Ensure that kernel parameters are set correctly.
Ensure that the server instance runs under the instance owner user ID.
Ensure that access rights and user limits are set correctly.
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
- 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