You are not logged in.
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
May be rc.local and rc.local.shutdown
Have a look at http://wiki.archlinux.org/index.php/The … ot_process
Offline
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
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
thanks a lot u_no_hu and fukawi2!
rc.local and rc.local.shutdown works!
thread solved.
Offline