LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 12: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, 12:51 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Create your control file eg "/etc/init.d/jonas" then run
"chkconfig --add jonas"
 
Old 04-04-2003, 03: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, 03:55 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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, 03:58 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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, 04: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



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

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

All times are GMT -5. The time now is 11:45 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