LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-04-2012, 06:20 PM   #1
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Rep: Reputation: 90
How to disable services from CLI using systemctl


Hi, fellow Fedora users. I had been using Fedora 14 and did a fresh install of 16. I'm surprised to see there are no run level specific directories under
/etc/rc.d any more. So I don't know how to disable services I don't need, like sendmail for example. With Fedora 14 I'd go to /etc/rc.d/rc3.d and change the
name of @S88sendmail to @s88sendmail then run "service sendmail stop" and it wouldn't start on subsequent boots. When I could not find the /etc/rc.d/rc3.d
directory I ran "service sendmail stop" and noticed a message pop up "Redirecting to /bin/systemctl stop sendmail.service". So I looked through the manual
for systemctl and found the command "disable". It says it disables the unit but does not stop it. So I'd have to run "systemctl stop sendmail.service". Am I
reading this correctly? Does this work for all services the same way? Where can I find the list of services symbolic links? Thanks in advance.
 
Old 03-04-2012, 06:25 PM   #2
Glennzo
Member
 
Registered: May 2003
Location: Salem, Mass USA
Distribution: Fedora
Posts: 393

Rep: Reputation: 47
systemctl stop unwanted.service
systemctl disable unwanted.service

http://fedoraproject.org/wiki/SysVin...emd_Cheatsheet
 
Old 03-04-2012, 06:34 PM   #3
SharpyWarpy
Member
 
Registered: Feb 2003
Location: Florida
Distribution: Fedora 18
Posts: 862

Original Poster
Rep: Reputation: 90
Smile

Quote:
Originally Posted by Glennzo View Post
systemctl stop unwanted.service
systemctl disable unwanted.service

http://fedoraproject.org/wiki/SysVin...emd_Cheatsheet
Very cool. Thanks very much, and for the link too.
 
  


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
Ubuntu Karmic listing and disabling services via CLI metallica1973 Ubuntu 2 03-23-2010 12:30 PM
how to restart dns,nfs services in cli mode pradeep parthiban Linux - Networking 2 09-18-2009 08:39 AM
How do I add/remove/manage services from the CLI? neocookie Fedora 3 11-24-2005 10:01 AM
what are the services i can disable, also disable ads, banners in konqueror? greythorne Suse/Novell 3 03-16-2005 08:30 AM
howto identify what services are running via CLI? Lleb_KCir Linux - General 3 09-21-2004 11:44 PM


All times are GMT -5. The time now is 04:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration