LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2005, 01:23 PM   #1
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Rep: Reputation: 15
I need to know more about service


I know how to manipulate buildin service that
I can use tools like ntsysv etc. but if I want to
start my own service at boot time How can I do?

The problem is when my server is down because
the power is off and wake up again when the power
is on (this server is HTTP service and I use XAMPP)
but my XAMPP is not start automatically.
I want to append my command"/usr/lampp/lampp start"
to any file that run at boot time. What file?

Thank you in advance.
 
Old 05-28-2005, 01:28 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
if it's installed properly as a service you can use chkconfig

as root try:

chkconfig

it will list all the services installed if it lists XAMPP then this should do the trick:

chkconfig XAMPP on
 
Old 05-28-2005, 01:36 PM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Re: I need to know more about service

Quote:
Originally posted by hus
I know how to manipulate buildin service that
I can use tools like ntsysv etc. but if I want to
start my own service at boot time How can I do?

The problem is when my server is down because
the power is off and wake up again when the power
is on (this server is HTTP service and I use XAMPP)
but my XAMPP is not start automatically.
I want to append my command"/usr/lampp/lampp start"
to any file that run at boot time. What file?

Thank you in advance.
probably the best file is /etc/rc.d/rc.local

It's the last file executed when you boot your machine.

What your system does when you boot in multiuser mode is start /etc/rc.d/rc.M
this script checks if some rc.* files (httpd,mysql,etc) have execute permission and if they do, they are executed.
Check the /etc/inittab and /etc/rc.d/rc.*(4,6,K,M,S) to get the whole picture of how things work.

Last edited by perfect_circle; 05-28-2005 at 01:43 PM.
 
Old 05-28-2005, 01:36 PM   #4
hus
Member
 
Registered: Dec 2003
Location: Bangkok- Thailand
Distribution: Mandriva 10.0,Fedora Core 4
Posts: 79

Original Poster
Rep: Reputation: 15
I don't have chkconfig program and I don't want to install it
What should I do ( prefered edit flat file ) ?
 
Old 05-28-2005, 01:41 PM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
Quote:
Originally posted by johnson_steve
if it's installed properly as a service you can use chkconfig

as root try:

chkconfig

it will list all the services installed if it lists XAMPP then this should do the trick:

chkconfig XAMPP on
This may work for most distros but slackware's boot script structure is unique and really simple.
There is no chkconfig command

Last edited by perfect_circle; 05-28-2005 at 01:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a service as a system service Dakkar SUSE / openSUSE 2 07-13-2005 07:36 AM
service softwar Mandriva 1 08-29-2004 10:57 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 02:08 AM
Name the service davee Linux - Newbie 3 07-08-2003 10:31 AM
No service u4113072 Linux - General 3 09-26-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration