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

Re: init scripts etc.



--- MillTek <mill.tek@verizon.net> wrote: 
> H,
> Can someone please tell me the name and location of an Init script that 
> I can use to run a sctript of my own?  If I write a script that is 

If you mean writing your own initscript, a template (as documented in the
manpage) is available:

/etc/init.d/skeleton

> executed by one of the 'official' scripts, do I have to do anything 
> special to return control to the script that called mine?  

Only an 'exit 0'

> I'd also like to have syslog record my boot-time events, if anyone knows
> 
> how.

Install 'bootlogd' and edit the file:

/etc/default/bootlogd so that the line:

BOOTLOGD_ENABLE=Yes

Then your startups are logged to /var/log/boot

-- Thomas Adam

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com



Reply to: