LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-28-2012, 01:21 AM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
chkconfig for starting and stopping services


I'm using CentOS 6.1. From the chkconfig man page, it says

"The on and off flags cause the service to be started or stopped"

As a test, I did this, but it didn't stop. What's going on here?

Code:
[root@alpha conf]# chkconfig --level 3 atd off
[root@alpha conf]# service atd status
atd (pid  2734) is running...
[root@alpha conf]# runlevel
N 3
[root@alpha conf]#
I know I can use service atd stop to stop it, but I'm trying to study the chkconfig command.

Last edited by fakie_flip; 09-28-2012 at 01:22 AM.
 
Old 09-28-2012, 02:23 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

chkconfig is used to specify what services are going to start/stop on spacific runlevels. From chkconfig manpage:
Quote:
chkconfig - updates and queries runlevel information for system services

Quote:
[root@alpha conf]# chkconfig --level 3 atd off
The command above makes atd not to start on boot at runlevel 3. It does not stop the service. To start/stop a service you use the service command as you've already mentioned.

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
starting/stopping services in debian Red Squirrel Linux - Software 8 03-09-2009 02:21 PM
Starting and Stopping services leupi Ubuntu 6 01-20-2007 05:12 PM
starting & stopping services/daemons rand0mh3ro Linux - General 4 02-16-2005 08:27 AM
Starting / Stopping / Restarting Services in VA Linux? abell Linux - General 1 11-15-2002 01:17 PM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 01:10 AM

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

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