Code:
mfc-falter:/etc/init.d/rc3.d # runlevel Code:
mfc-falter:/etc/init.d/rc3.d # find /etc/init.d -iname "*adsm" -ls i think there is a problem here... Code:
mfc-falter:/ # ps -ef | grep dsmc but when i start it manually and directly (not using the Snn files) Code:
mfc-falter:/etc/init.d # ./adsm start Code:
ln -s /etc/init.d/adsm /etc/init.d/rc3.d/S90adsm |
Well, at least the adsm links are ok now.
The strange is "/etc/init.d/adsm start" works and "/etc/init.d/rc5.d/S90adsm start" not, even it says "Starting ADSM scheduler...started - done." :scratch: I think the problem is not with the link anymore but with the script itself. In your post #20, you put a section of "/etc/init.d/adsm start" that says it is a "script is designed for Debian Linux" but you are using a openSuSE system, right ? Try to replace this debian script by an another one designed to SuSE. Check if there is a SuSE script in the package. Or you may try this one: Novell Cool solutions Make a copy of "/etc/init.d/adsm" in a safe place, just in case, and copy the new script over "/etc/init.d/adsm". The SuSE script in the above link follows the LSB conventions to be used with chkconfig. In this case, remove the links manually, and run "chkconfig adsm on; checkonfig --list adsm" and check if the proper links were created in the right places and position. Try to run by the link again. |
well i have replaced the script, set chkconfig adsm to off (which has deleted the links) .
Then i copied adsm to /etc/init.d/. set the file to mod 755. then i made chkconfig adsm on.. the script was on levels 3 on 5 on. but it still did not start on the boot.. here is a log of the terminal Code:
mfc-falter:~ # chkconfig -l adsm |
What you have done so far:
1) fixed the init script by the correct one, for SuSE systems. 2) fixed the links in the runlevels to run the init script at the right time (S09) Now we have to find the reason it not start by look for messages in log files. If you are using the init script provided by Novell Coll Solutions try to edit the section that call dsmc binary and change the null re-direction to a log file in /tmp instead. Change from: Code:
echo -n $"Starting $prog2: " Code:
LOG="/tmp/adsm-init.log" At boot time try to see if there are messages in console, it may help you too. |
before we try it with the script from novell a quick question..
in msdos there is this autoexec.bat..i have made a search for its linux relevant and i have landed on /etc/init.d/boot.local file (on suse) when i run this command on console Code:
mfc-falter:/ # /etc/init.d/adsm start Code:
mfc-falter:/ # ps -ef | grep dsmc then i try out smt. like this.. Code:
mfc-falter:/ # cd /etc/init.d/ what is the difference between these two commands? should i really use cd command in a script file? |
ok now it works..i believe i have "technically" what i wanted..please correct me if i am wrong..
Code:
mfc-falter:~ # ps -ef | grep dsmc first of all, the boot.local file; Code:
# /etc/init.d/boot.local Code:
myadsm |
Quote:
You can, for sure, put any commands in boot.local. The difference is it is not under the control of chkconfig so, you need to manually edit the file to activated or not the command in the next boot. In fact, the very first versions of unix/linux didn't have any other boot script but only a simple file where all commands are in, just like boot.local. In fact, even in nodays there are very tiny/small versions of unix-like system that have only one script executed at boot time, full of commands. In fact, nothing changed at all. After kernel is up it calls the process /sbin/init that calls the script /etc/init.d/boot. This script will call every /etc/init.d/rcN.d/Snnwhatever and after that /etc/init.d/boot.local. Quote:
|
Congratulations !
Quote:
Just to be sure, add the cd command at the beginning of adsm script, and remove it from boot.local and restore it via chkconfig. If it works, than it is really a bug - it runs only if the current dir is /etc/init.d/ for some reason.... best regards, |
All times are GMT -5. The time now is 04:46 AM. |