i have compared the runlevels of adsm script with sshd and cupsd..
they are the same.. so the adsm should be started at the same level.. what could be wrong..? i could start the script manually.. |
I am guessing, but looks like the order for this adsm program is wrong. S01 is too soon; you don't have networking at this point, for instance.
If the program does not have the necessary pre-requisites it will fail at startup, but after the system boots up completely, it can run just fine. What this adsm program is supposed to do ? Where you have downloaded it ? How do you install this program ? By a rpm or a tar (configure;make;make install) ? Please, put the lines beetween ### BEGIN INIT INFO and ### END INIT INFO of the /etc/init.d/adsm so we can propose a better order for it. |
this adsm script is supposed to start the scheduler of "ibm tivoli backup sofware". It is written by the university of heidelberg where i work as a part-time student.
Quote:
i don't have these lines (###BEGIN INIT INFO etc..) in adsm script.. |
Quote:
For instance, /etc/init.d/postfix has the lines: Code:
### BEGIN INIT INFO Code:
# Anyway, you need to change when this script starts. Currently it starts at very beginning of runlevel 5 (S01) and I suggest you change it to start a bit later. In the above notation, anacron starts at position S95 of run levels 2, 3, 4 and 5 and ends at position K05 of the same levels. If your script follows that convention, edit it and change the position to S90 or something like that. run "chkconfig adsm off" before you edit the file, and "chkconfig adsm on" after you have edited it. Check the position of the links Snnadsm. If not, make the links manually: Code:
# rm /etc/init.d/rc5.d/S01adsm /etc/init.d/rc3.d/S01adsm |
Code:
mfc-falter:~ # find /etc -name "*adsm" in /var/log/boot.msg i search for string "adsm" . It could not be found. script has only these lines.. Code:
#!/bin/sh |
level 2 did not help..
when the adsm script is run, is gives outputs like "adsm is already running" or "adsm is started" etc..is there any log file in which this could be written so that i can read? |
NEW INFO HAS COME TO LIGHT!!!
Usage: /etc/init.d/ADSM {start|stop|restart} this was in the /var/log/boot.msg file.. mfc-falter:/etc/init.d/rc2.d # ./S21adsm Usage: /etc/init.d/ADSM {start|stop|restart} i need some sort of an start parameter..how can i add it to the adsm script? |
Quote:
Every script at /etc/init.d/rcn.d/S* is called to run as "/etc/init.d/rcn.d/Snnwhatever start" ...still thinking... |
Quote:
Create the link at /etc/init.d/rc5.d/S90adsm and I bet this time it will work. From my previous post there is a instruction to create the link at rc5.d, check it if necessary. |
Quote:
|
there were links on levels 3 and 5 but they didn't work. That's why i tried to place the links on the second level..
But now i know the problem..the script needs and start argument to start. As i posted in #22..i just don't know how to automate it with the start argument.. |
Quote:
Double check. Quote:
So I think is just a matter of create a link a run level 5. The command "ln -s /etc/init.d/adsm /etc/init.d/rc5.d/S90adsm" should work. |
Quote:
mfc-falter:/etc/init.d # chkconfig -l adsm adsm 0:off 1:off 2:off 3:on 4:off 5:on 6:off mfc-falter:/etc/init.d # find /etc -name "*adsm" /etc/adsm /etc/init.d/rc5.d/K21adsm /etc/init.d/rc5.d/S01adsm /etc/init.d/adsm /etc/init.d/rc3.d/K21adsm /etc/init.d/rc3.d/S01adsm Quote:
oh sorry, i missed that part.. Quote:
|
mfc-falter:/etc/init.d # ln -s /etc/init.d/adsm /etc/init.d/rc5.d/S90adsm
mfc-falter:/etc/init.d # rm /etc/init.d/rc5.d/S01adsm mfc-falter:/etc/init.d # find . -name "*adsm" ./rc5.d/K21adsm ./rc5.d/S90adsm ./adsm ./rc3.d/K21adsm ./rc3.d/S01adsm with these settings, it does not start after reboot..do i have the right to go out of my mind? :scratch: |
Quote:
You left a "/etc/init.d/rc3.d/S01adsm" behind. remove it and re-create the link in runlevel 3 in the proper position with "ln -s /etc/init.d/adsm /etc/init.d/rc3.d/S90adsm". If your current run level is 3 this is why it not worked at run level 3. And as I said in a previous post, stay away from runlevels 2 and 4. before you boot your machine, give me the output of the following commands: Code:
# runlevel Code:
# /etc/init.d/rc5.d/S90adsm stop |
All times are GMT -5. The time now is 04:34 AM. |