LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 09-26-2006, 01:54 PM   #1
javier_ccs
Member
 
Registered: Apr 2005
Location: Milton Keynes
Distribution: ubuntu 12.10
Posts: 90

Rep: Reputation: 15
Question inittab on sles 8


hello folks...

i need to add the scheduler of tsm to the inittab of one of my servers with sles 8.

start of the scheduler:
/opt/tivoli/tsm/client/ba/bin/startsched.sh start

stop of the scheduler:
/opt/tivoli/tsm/client/ba/bin/startsched.sh stop

i was googleing around and found this:
step 1:
create a script

Code:
# vi /etc/init.d/levanta-tsm.sh
# chmod 744 /etc/init.d/levanta-tsm.sh
step 2:
inside the script
Code:
#!/bin/bash
/opt/tivoli/tsm/client/ba/bin/startsched.sh start
step 3:
create a link on the run control
Code:
# cd /etc/init.d/rc3.d
# ln -s ../levanta-tsm.sh S99levanta-tsm.sh
step 4:
indicate the system to recognize the change
Code:
# insserv
step 5:
verify on the chkconfig
Code:
# chkconfig -l |grep levanta-tsm.sh
levanta-tsm.sh                 0:off  1:off  2:off  3:on   4:off  5:off
6:off

so far it seems easy and the right thing to do, but somebody told me that it would not work since it would erase it automatically, and that it was not the right thing to do, that i should use the skeleton...

i was checking out the skeleton but it seems hard to understand to someone like me with no experience on shell scripting...

can anyone help me?, is it or is it not the right thing to do?, does anyone has a skeleton-like script that can help me?


please....
 
Old 10-06-2006, 01:50 AM   #2
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99

Rep: Reputation: 17
I'm pretty sure that you don't want to run the init.d startup scripts inside the inittab; look to see what's being started by the script and put that in the inittab. I'm pretty sure ours just does 'dsmc sched' with the appropriate parameters for inittab, and does 'respawn' to make sure it always runs. I think if this is done, you don't need to call anything from /etc/init.d, nor do you need a rc?.d startup script.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add new inittab Maurice Arthur Mandriva 1 10-17-2005 01:51 AM
rc[0-6] and inittab kpachopoulos Linux - General 1 08-12-2005 04:27 PM
inittab mikedeatworld Linux - Software 3 08-13-2004 10:01 AM
Cant get out of inittab InEeDhElPlInUx Linux - Newbie 3 10-09-2003 02:13 PM
/etc/inittab sakeeb Linux - General 9 05-29-2002 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration