Create the script to start in /etc/rc3.d/ for run level 3.
I recently upgraded a server to Suse 10.1, in order to have RPM compatibility AND Wake on LAN... I was wondering... How would I set a program to start on boot (or runlevel 3ish)? My RAID monitoring software needs to be started before it is useful, and I don't want to have to start it over my SSH connection every time... Thanks in advance!
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
Create the script to start in /etc/rc3.d/ for run level 3.
So, I would just need to make a file, have one line in it stating the program name (it is in my PATH), make the file executable, and put it in the /etc/rc.d/rc3.d/ directory? If I also wanted it to run in runlevel 5, would I also need to copy the file to rc5.d, or do you think symbolically linking it would work?
Asus A8V Deluxe Mobo
AMD Athlon64 X2 4400 -939
2GB Crucial DDR3200 Dual-Channel
ATi AiW 9800 Pro 128DDR
Audigy2 ZS
Sony DRU-810 DVD+RW DL
3 x Maxtor MaxLine SATA 160Gb 16Mb Cache
1 x Maxtor MaxLine SATA 300Gb 16Mb Cache
1 x Maxtor MaxLine SATA 120Gb 16Mb Cache
Take a look at a few samples there and you will see ...
YOu also need to give it a shell (sh or bash or whatever). And then put the order in. S stands for start, K stands for Kill, number like 01, 91 or whatever, then your file name. You want the number higher than your other things but later than networking module. So on and so forth.
Bookmarks