LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-04-2003, 01:27 PM   #1
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Rep: Reputation: 15
Smile small question, service


Redhat KDE has a tool can let user manage the system service, I could get the init.d rc5.d configured to started my JOnAS service. But it is not showing up in that tool. I guess there should be some configure files for that tool. It would be really nice if I can configure my service within that GUI tool.

Does anyone know about this?
 
Old 04-04-2003, 01:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Create your control file eg "/etc/init.d/jonas" then run
"chkconfig --add jonas"
 
Old 04-04-2003, 04:42 PM   #3
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
thanks, but the jonas is a batch I wrote and while I was chkconfig -add jonas, it says:
service jonas does not support chkconfig

Do you know where I can find more information or do you know how to solve this problem?
 
Old 04-04-2003, 04:55 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
You need to modify your script to look like the other ones in /etc/rc.d. Find the simpliest one you have and replace teh orginal line(s) used to run the program with your own ones.
 
Old 04-04-2003, 04:58 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
As far as I can makeout from "man chkconfig" under the "RUNLEVEL FILES" section you need to put some comments at the start of the file that tell chkconfig what the default runlevels and priorites are.
 
Old 04-04-2003, 05:24 PM   #6
hanxuerui
LQ Newbie
 
Registered: Mar 2003
Location: Edmonton
Distribution: slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Wahh, it works. Thanks David and Mara!
 
  


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
Question about /etc/service bladehaze Linux - Newbie 7 09-15-2005 09:11 PM
small question. bruse Linux - Newbie 9 04-11-2005 08:22 AM
Just a small question Mingthefirst Slackware 2 07-07-2004 10:12 PM
Small question Ed-Slack Linux From Scratch 1 01-08-2003 09:03 AM
a small question ericn Linux - Security 3 01-07-2002 06:04 PM


All times are GMT -5. The time now is 02:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration