Click to See Complete Forum and Search --> : Nice shudown


Danne
09-30-2005, 05:32 AM
hello,

I'm setting up a server for an ordinary web application.

I've learned that you can edit /etc/init.d/boot.local and add programs you want to start, in this case the apache server (I'm using the xampp software).
So I've added the line "/opt/lampp/lampp start" at the end of boot.local.
Works fine!

Well, I want it to exit nice too. Is there a similar file where I can write exit commands?

Dan (perfect Linux newbie)

mrBen
09-30-2005, 07:31 AM
It will depend on your distribution. Runlevel 6 is the shutdown runlevel, so there should be some scripts kicking about that indicate what to do when this runlevel is entered.

serz
10-01-2005, 07:38 AM
No mrBen, that is not correct, runlevel 6 is reboot, runlevel 0 is shutdown.

You can look at the /etc/inittab file, it tells you what script it runs everytime you change from runlevels.