LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 02: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 02:22 AM.
 
Old 09-28-2012, 03:23 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,901

Rep: Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885Reputation: 1885
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


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

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

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