RE: Help on starting a process upon power up?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You could do it in /etc/rc.d/rc.sysinit or /etc/rc.d/rc.local, which get booted about half way through the boot process. Or do it in /etc/rc.d/rc3.d/S99<yourfile> which will get run at the end of the boot cycle.
 
Best way to do it: a shell script that maintains a counter of the number of reboots you've done and quits the process at the end of the 100th. 
 
Cron won't work because it's not tied in to the reboot process and it doesn't have a way of keeping track of the number of times the script has been run.
 
Mike

	-----Original Message----- 
	From: Ahmed A [mailto:ahmedcali@yahoo.com] 
	Sent: Tue 5/25/2004 12:39 PM 
	To: kernelnewbies@nl.linux.org 
	Cc: 
	Subject: Help on starting a process upon power up?
	
	

	Hi, 

	Can someone please suggest a way to accomplish the 
	following.  (I am not necessarily looking for the 
	answer, but pointer to the best approach to the 
	following, suggestion of urls or books would be very 
	helpful) 

	Upon power up (at the end of power up), I would like 
	to load some drivers that I have written.  Test if the 
	driver loaded successfully (I know how to do this). 
	If successful, update a file (like a counter).  Then 
	reboot automatically.  I would like to do this about 
	100 times. 

	Do I need to use cron for this?  If so, how and where 
	do I place the code? 

	Or do I just need to change the boot up script?  If 
	so, how and where? 

	Thanks in advance, 
	Ahmed. 




	        
	                
	__________________________________ 
	Do you Yahoo!? 
	Friends.  Fun.  Try the all-new Yahoo! Messenger. 
	http://messenger.yahoo.com/ 

	-- 
	Kernelnewbies: Help each other learn about the Linux kernel. 
	Archive:       http://mail.nl.linux.org/kernelnewbies/ 
	FAQ:           http://kernelnewbies.org/faq/ 

ÿòž®w¥ì‰ëÿéiy§!¢Ø^®Wš®v›¢ëm…ââžìdz¹Þð+r¯{øm¶Ÿÿþf¢—ùåþX§»è®äz¹Þw°n'¬üPþm§ÿÿ‘êçzYÞÁž³ú+ƒ÷Ú


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux