Ooops, almost forgot one other thing. EITHER: 1) Edit /etc/rc.config and insert a 'START_MYDAEMON=yes' 2) SuSEconfig OR 1) Comment out the two test lines in the header of your file mydaemon - the ones that check to see if START_MYDAEMON are set to yes. Sorry... Sean -------- Original Message -------- Subject: Re: [SLE] Run at Boot Date: Fri, 30 Jul 1999 08:29:45 +0200 From: Sean Groarke <sgroarke@nortelnetworks.com> Reply-To: Sean Groarke <sgroarke@nortelnetworks.com> Organization: Nortel Networks EMEA To: "suse-linux-e@suse.com" <suse-linux-e@suse.com> This is something I got to grips with for the first time a few weeks ago, so while it's still fresh in my mind, here's my newbie recollections of how to do it: 1) As root, go to /sbin/init.d 2) Take the skeleton file, copy it into the same diretory as something sensible (let's say 'mydaemon'). Or copy one of the other existing files in the directory. 3) Edit mydaemon - at first sight, it looks hairy, but look more closely and there's actually very little to change in it. The minimum you really need IMHO is: a) Change the 'FOO's to 'MYDAEMON' in the header area. b) Edit for the 'start' option: (i) foo -> mydaemon (ii) Uncomment the startproc line (iii) Change the startproc line to reflect your program. c) Similarly for the 'stop' option, but this time it's a killproc you edit. d) If you feel so inclined, do similar stuff for restart, reload, status, probe - although the first time I did this I just commented them all out! 4) Now you have a single file, 'mydaemon' in /sbin/init.d. Don't go doing what I did - trying to drop copies and links to in into the /sbin/init.d/rc2.d type directories.... 5) Now the really neat bit: do 'rctab -e'. This drops you into the editor, with a table of all the different startup tasks in columns, where each column reflects a different run level. This sounds complex, but is actually very simple when you do it. Now simply go to the bottom of the column for, say, run level 2 and 3, and insert 'mydaemon' in place of the dashes that are currently there. 6) Do a normal vi :wq to leave the editor, and you will now find that in (in this case) rc2.d and rc3.d there are now magically Snnmydaemon and Knnmydaemon links, back up to your original file. 7) That's about it! Do an 'init s' then back up with 'init 2' and see what happens. I hope you feel as satisfied as I did when this first worked for me...!!! Cheers, Sean
-------- Original Message -------- Subject: [SLE] Run at Boot Date: Thu, 29 Jul 1999 21:50:38 -0500 From: Chris <chris@kulish.com> To: SuSE Email List <suse-linux-e@suse.com
Ok, I tried to run something at boot (boot.local), with one problem.It seems that it was running >before the network drivers were loaded.I need this daemon to run at runlevel 2(?), whichever is the last one it reaches before it >drops you to the login prompt.
TIA
CK
-- To unsubscribe, e-mail: suse-linux-e-unsubscribe@suse.com For additional commands, e-mail: suse-linux-e-help@suse.com