RedHat or Mandrake Linux Init Script to start TSM server, dsmserv, on boot

rlambie

Newcomer
Joined
Nov 2, 2003
Messages
1
Reaction score
0
Points
0
Hi all,



The title sort of says it all. I have recently installed TSM 5.2 on a Mandrake 9.2 box. It is running fine but not auto-starting when the machine is booted. I am not well versed with Shell scripts so I have had a little trouble building an init script to run dsmserv. I am sure that this has been done before and I was hoping someone may have an example I could use.



Thanks in advance,



Raymond :rolleyes:
 
Real basic script to do this:



#!/bin/bash

#

# chkconfig: 35 99 99

# description: Startup script for TSM, starts TSM in schedule mode

#





# Source function library.

. /etc/rc.d/init.d/functions



# See how we were called.

case "$1" in

start)

echo -n "Starting TSM: "

# daemon /usr/bin/dsmc schedule > /dev/null 2>&1 &

/usr/bin/dsmc schedule > /dev/null 2>&1 &

echo

;;

stop)

echo -n "Shutting down TSM: "

killproc dsmc

echo

;;

*)

echo "Usage: $0 {start|stop}"

exit 1

esac



exit 0
 
Back
Top