LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-14-2004, 06:57 AM   #1
monohouse
Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 206

Rep: Reputation: 30
control of running services


I know there is a command that says "service <name> stop/start/restart"
and that the same command allows to show status of the services, however what I don't know is how can I prevent them from starting in the first place......

can someone help me with this ?
how can I tell which services start and which don't ?
and how can I delete services ?

Last edited by monohouse; 12-14-2004 at 06:58 AM.
 
Old 12-14-2004, 07:04 AM   #2
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
The services are started at boot by scripts in /etc/rc.d/init.d (on Redhat, the others may have some differences). When entering into a particular runlevel (e.g. 5 - X11, multiuser, network), the links to these scripts in /etc/rc.d/rc5.d are started.

You can manually remove the unnecessary links, however, there are cleaner ways to do this. Check for some graphical frontends (e.g. rehat-config-services), debian has some console-based utilities too.

And, of course, you may remove the associated software.

Best,

Ott
 
Old 12-14-2004, 07:07 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The command:
chkconfig --list

Will list all configured services and what runlevels they start at. See man pages for details.

You can use chkconfig to configure services to start at boot time.
example:
chkconfig --level 3:5 httpd start

This will start apache for runlevels 3 & 5.


Last edited by michaelk; 12-14-2004 at 07:09 AM.
 
Old 12-14-2004, 07:29 AM   #4
monohouse
Member
 
Registered: Oct 2004
Distribution: Arch
Posts: 206

Original Poster
Rep: Reputation: 30
chool ! thanks
 
Old 01-03-2005, 03:04 AM   #5
Prabhat Sharda
LQ Newbie
 
Registered: Jan 2005
Location: Noida, India
Distribution: RedHat 9.0, CentOS 3.4
Posts: 17

Rep: Reputation: 0
Hello to all,

I am a new member, just joined, and posting my first mail.
Firstly, i introduce myself. I am working in a company, on linux platform, and belongs to Noida,India.

I wish Ur help in solving some problem concern with the above topic only.

My application is running on a machine having Red Hat 8.0. This application runs its own services which can be easily registered on Windows Platform. We can start/stop these services manually also.

My problem is How can be these services run on linux machine? If i write the shell scripts files, and copy them in /etc/rc.d/init.d folder during installation period then Will it work..?
also if i want to start/stop these services manually, then, Will the service command work..?

Second thing, if assume that currently these services are not active or available. I want to provide these services from a remote machine, i.e. remotely connect to this m/c from any m/c i have, want to load,start/stop the services.. then how can i do all this from remotely..?

Thanks in advance....
 
Old 01-17-2005, 11:08 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

get hold of any script from rc.d directory and then follow it and put the required commands for ur script there

regards
 
  


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
How to show what services are running? lewkh Debian 10 05-14-2019 04:31 AM
How can I view running services? ctroyp Fedora 8 10-19-2005 01:45 PM
How do I know, which services within xinetd are running saneax Linux - Newbie 4 08-11-2004 07:47 AM
what services should i have running? jamesgf Linux - General 3 04-18-2003 02:24 PM
Mandrake Control Center: Services not saving? leiavoia Linux - General 0 06-13-2002 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 PM.

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