5.
Configure the client to start from boot Method A Using the inittab Add the following entry to the /etc/inittab : cad::once:/opt/tivoli/tsm/client/ba/bin/dsmcad >/dev/null 2>&1 # TSM Webclient Method B Using an /etc/init.d script On a Suse linux system, adding corresponding scripts for the Tivoli Storage Manager client acceptor daemon, dsmcad, is a standard way to perform necessary administrative tasks like starting, stopping or restarting dsmcad and/or dsm scheduler using standard linux service start/stop/restart for automatic or manual operations. The below procedure may be used to configure dsmcad in such a way. a. Create the following script file /etc/init.d/dsmcad: #! /bin/sh # # /etc/init.d/dsmcad # ### BEGIN INIT INFO # Provides: dsmcad # Required-Start: # Should-Start: # Required-Stop: # Should-Stop: # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: dsmcad (TSM client acceptor daemon) # Description: Start dsmcad to launch the Tivoli Storage Manager # client acceptor daemon, which can be used for web client access # as well as client scheduling services. ### END INIT INFO # # Check for missing binaries (stale symlinks should not happen) # Note: Special treatment of stop for LSB conformance DSMCAD_BIN=/opt/tivoli/tsm/client/ba/bin/dsmcad test -x $DSMCAD_BIN || { echo "$FDSMCAD_BIN not installed"; if [ "$1" = "stop" ]; then exit 0; else exit 5; fi; } #Source function library. . /etc/rc.status # Reset status of this service rc_reset case "$1" in start) echo -n "Starting dsmcad" startproc $DSMCAD_BIN rc_status -v
;; stop) echo -n "Shutting down dsmcad" killproc -TERM $DSMCAD_BIN rc_status -v ;; try-restart) $0 status if test $? = 0; then $0 restart else rc_reset # Not running is not a failure. fi rc_status ;; restart) $0 stop $0 start rc_status ;; force-reload) echo -n "Reload service dsmcad" $0 try-restart rc_status ;; reload) echo -n "Reload service dsmcad, not supported" rc_failed 3 rc_status -v ;; status) echo -n "Checking for service dsmcad" checkproc $DSMCAD_BIN rc_status -v ;; *) echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload}" exit 1 ;; esac rc_exit b. Setup permissions to execute for /etc/init.d/dsmcad file (at least for root user), i.e, # chmod 744 /etc/init.d/dsmcad c. Now, run the insserv command to have the necessary links created in the rcN.d directory for the defauls levels specified in the INIT INFO section of the script, i.e,
# /sbin/insserv /etc/init.d/dsmcad To have the links removed and not have dsmcad started at boot, type # /sbin/insserv -r /etc/init.d/dsmcad The above procedure will allow dsmcad to start automatically at system startup. It is also possible now to start and stop dsmcad using the script. For example : * To start dsmcad manually run: /etc/init.d/dsmcad start * To stop dsmcad run: /etc/init.d/dsmcad stop * To restart dsmcad (for example to refresh daemon after dsm.sys or dsm.opt modification) : /etc/init.d/dsmcad restart * To check if dsmcad is running run: /etc/init.d/dsmcad status -orps -ef | grep dsmcad