Fedora Linux Support Community & Resources Center
  #1  
Old 3rd December 2011, 06:33 PM
gihad Offline
Registered User
 
Join Date: May 2010
Posts: 14
linuxchrome
Managing services with systemd

Hi,
I'm having issues managing services on F16 x86_64 with systemd. I've been using chkconfig to see in what levels services were configured to be on or off, and used ntsysv to easilty get a list of the services I had installed and manage their default status.

But I'm having issues doing the same with Systemd. Is there any tool that works like ntsysv? Any command line that would help me achieve that?

Thanks!
Reply With Quote
  #2  
Old 3rd December 2011, 07:03 PM
Finalzone Offline
Community Manager
 
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,470
linuxfirefox
Re: Managing services with systemd

Check out this systemd guideline
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 20 Heisenbug x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Sony VAIO - OS: Fedora 20 Heisenbug i386.
Reply With Quote
  #3  
Old 3rd December 2011, 07:05 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,135
linuxfirefox
Re: Managing services with systemd

There isn't much left to do with sysV in F16 with the adoption of systemd.
Code:
[paul@CarCrusher ~]$ sudo chkconfig --list

Note: This output shows SysV services only and does not include native
      systemd services. SysV configuration data might be overridden by native
      systemd configuration.

iscsi          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
iscsid         	0:off	1:off	2:off	3:on	4:on	5:on	6:off
jexec          	0:on	1:on	2:on	3:on	4:on	5:on	6:on
livesys        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
livesys-late   	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netconsole     	0:off	1:off	2:off	3:off	4:off	5:off	6:off
netfs          	0:off	1:off	2:off	3:on	4:on	5:on	6:off
network        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
postfix        	0:off	1:off	2:off	3:off	4:off	5:off	6:off
sandbox        	0:off	1:off	2:on	3:on	4:on	5:on	6:off
svnserve       	0:off	1:off	2:off	3:off	4:off	5:off	6:off
The command now to use with most things, instead of "service", is "systemctl". To see the list of services you can command and control with the systemctl command, do:
Code:
systemctl list-units --all
This will show, paginated, everything, but the services are now named with a ".service" extension. I have not used ntsysv, and don't know if there is a systemd counterpart, other than chkconfig.
Reply With Quote
  #4  
Old 3rd December 2011, 08:27 PM
gihad Offline
Registered User
 
Join Date: May 2010
Posts: 14
linuxchrome
Re: Managing services with systemd

Thanks both of you for your answer!

I haven't tried this on other init level than 5, but what I did to disable the services I didn't want was:

Code:
$ systemctl list-units --all | grep .service > services-status.txt
With that I get the full list of services (all of them, actives and inactives).

And then just went one by one doing:
Code:
$ systemctl disable SERVICENAME.service
to disable services to not start on bootup. And:
Code:
$ systemctl disable SERVICENAME.service
to enable services to start on bootup.

You can also use systemadm on the terminal and it will open a GUI with the same information you'll get using systemctl list-units --all, just be aware that most of the controls are not working properly.

Hopefully this will help someone else!
Reply With Quote
Reply

Tags
managing, services, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
chkconfig does not include native systemd services prasannarajaram Using Fedora 5 29th November 2011 06:58 PM
services delayed start, services dependencies, bootup pankajp Using Fedora 0 9th September 2008 02:23 PM
Managing Services cruzer Using Fedora 2 9th May 2006 05:10 AM
Blocking services for internal services aterrell Security and Privacy 7 22nd October 2004 01:25 AM


Current GMT-time: 07:39 (Thursday, 18-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat