Click to See Complete Forum and Search --> : Auto-start for hotplug...
[Mystik_Cool]
04-10-2001, 04:45 PM
I already asked this question, but nobody never replied !! Why ???
I need to make hotplug start automatically at every booting of linux, but I don't know how.
In the "readme" file with hotplug, they say to copy something in "init.d", and after configure "chkconfig" to make hotplug start each time I boot linux (I don't remember the exact command, tell me if u need it...)
And if I type "make install" in the directory of hotplug, it's the same : he needs "chkconfig".
The problem is that I use a SuSE version of Linux, so there is no file named "chkconfig". It must be for Redhat...
Could someone tell me what I have to do to install hotplug and make it start every time I reboot with me SuSE version ?
Thanx...
Tyr-7BE
04-10-2001, 05:11 PM
Do you have a /etc/rc.local file? How about /etc/init.d/rc.local? Or do you have /etc/rcX.d, X being a number? If I knew what kind of boot scheme SuSE used, I could tell you how to make things start up automatically. Try a forum search for suse startup or something like that and see if it turns up anything. Otherwise tell me what's in your /etc directory as far as rcX.d or init.d goes.
[Mystik_Cool]
04-10-2001, 06:17 PM
There is a /etc/rc.d file, which contain several directories :
There is /etc/rc.d/init.d, but this "init.d" is only a link to the directory where it is (so when I click on init.d i come back to /etc/rc.d)
And there are all the rc : /etc/rc.d/rc1.d, rc2.d, rc3.d,... rcS.d
Do you need to know something else ?
There is a readme file but it doesn't explain how to add something at startup... :-(
So, If u can help me, It would be greatly appreciated...
Thank you...
[ 10 April 2001: Message edited by: [Mystik_Cool] ]
bdg1983
04-11-2001, 05:57 AM
I already asked this question, but nobody never replied !! Why ???
As I explained in one of your many other posts on the same question, not everyone knows the answer to your problem. I certainly don't. Wouldn't imagine other newbies would either.
Try reading the NHF here (http://www.linuxnewbie.org/nhf/intel/osbooting/sysvinit.html) on SysV. Should help you. Also read the SuSE docuementation at their website.
[ 11 April 2001: Message edited by: mdwatts ]
phorge
04-11-2001, 06:51 AM
In Suse (7.1 for me) you should place the script into the main rc.d folder. Then create a symlink within the correct run level folder, i think rc.d3 is the normal run level.
Then reference this symlink using an S in the filename to start it and a K to stop it, usijng a 2 digit number for when to start/stop the process.
e.g S10sendmail will start sendmail as the tenth process. K12sendmail will stop sendmail at the twelth process.
The process number is not very important, as long as you start it after the kernel and stop it before the kernel. (Although i havent tested this part i am using my common sense that you should stop all processes before going to sleep!)
Hope that helps, and that you understand.
[Mystik_Cool]
04-11-2001, 08:58 AM
Thank you very much !
Yes I understand, and even if it doesn't help, I have learnt something ;-)
I'm going to try this...
Erm, for mdwatts, if it doesn't work I'll try to check the SuSE documentation again but I already did it. But there are so much pages that maybe I missed it...
Thanks for your answer.
:)
[Mystik_Cool]
04-11-2001, 09:50 AM
Wonderful, it seems to work correctly !!!! Many many thanx man ! :-)
I would like to be sure it started, so, does someone know what's the command to type to see all the messages printed when booting the kernel ? I read it somewhere but I don't remember...
[Mystik_Cool]
04-11-2001, 10:29 AM
Ok I found it again !!!!
type "lees /var/log/boot.msg" (under SuSE it works, I don't know for other systems...