You are not logged in.

#1 2009-01-13 07:14:28

ragingmon
Member
Registered: 2008-10-21
Posts: 7

[solved] start something at boot and shutdown

Hi all,
I just need a help about bash, or anything that this can be solved.

As a normal user, I always run
sudo /opt/tomcat/bin/startup.sh
sudo /opt/lampp/lampp/ start
and at shutdown I also run
sudo /opt/tomcat/bin/shutdown.sh
sudo /opt/lampp/lampp/ stop

I just want to run these two at startup.
And of course end them in shutdown.

I've been browsing in the forums and still I'm a bit confused.
Like putting something in /root/.bashrc, and /root/.bash_profile, etc.
None had worked though...

Any help?

Last edited by ragingmon (2009-01-13 09:35:41)

Offline

#2 2009-01-13 07:32:34

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: [solved] start something at boot and shutdown

May be rc.local and rc.local.shutdown
Have a look at http://wiki.archlinux.org/index.php/The … ot_process


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#3 2009-01-13 09:21:43

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: [solved] start something at boot and shutdown

rc.local and rc.local.shutdown are an easy way to do it.

If you want to do it properly, have a look at writing your own rc script to go in/etc/rc.d/ then add it to DAEMONS in your rc.conf smile

Offline

#4 2009-01-13 09:35:26

ragingmon
Member
Registered: 2008-10-21
Posts: 7

Re: [solved] start something at boot and shutdown

thanks a lot u_no_hu and fukawi2!
rc.local and rc.local.shutdown works!

thread solved.

Offline

Board footer

Powered by FluxBB