Linux Blog

Managing Services on Fedora

Filed under: Linux Software — TheLinuxBlog.com at 12:01 am on Wednesday, July 2, 2008

Fedora is a great desktop system, it has a pretty good services manager called service. It can be used to turn on, off and restart most services that run on the system. Should you want to manage running services all you have to do is type:

service[service name] [stop | start | restart]

If you don’t know the service name it can normally be found by issuing the –status-all switch. Doing so will output a long list of services so you may want to grep it or use a pager such as less:

 [root@linux-blog ~]# service --status-all | less
 
[root@linux-blog ~]# service --status-all | grep snmp
capi not installed - No such file or directory (2)
JAVA_EXECUTABLE or HSQLDB_JAR_PATH in '/etc/sysconfig/hsqldb' is set to a non-file.
snmpd is stopped
snmptrapd is stopped

While service is a great utility to manage services it does not stop them from running at startup. To manage services that start up when you boot you can use a handy little dialog script called “ntsysv”:

[root@linux-blog ~]# ntsysv

This will give you a nice dialog which is intuitive and similar to those of text based installers. Select the services you want to start up and then tab over to OK. I turn a lot of services off that I don’t use, if you’re unsure of what you need, try stopping it with the services command first and see if anything breaks. If after test it works well just turn it off.

Since I don’t use SELinux on my development machine, I always turn off setroubleshootd. I used ntsysv to stop it from starting at bootup and if I need it I can use the service command to start it.

Here is a screenshot of ntsysv in action:

managing services with ntsysv on Fedora





Random Man Pages:
fadeplot
dbus-send
penetrate
pipes

6 Comments »

744

Pingback by The Linux Blog » Adding a service in Fedora

July 6, 2008 @ 2:08 pm

[...] service to start automatically at boot up you can use ntsysv. For more information read my post on Managing Services on Fedora Random Man Pages:mach32info sphere threedkit [...]

999

Comment by Gyanendra

August 29, 2008 @ 9:33 am

excellent note, really helped

Thanks alot

Pingback by The Linux Blog » Using a custom Tomcat on Fedora

November 12, 2008 @ 10:29 am

[...] or later in the boot process. You can also enable the service at startup with ntsysv. Check out manage services on Fedora for other service [...]

Comment by Thomas

March 5, 2010 @ 9:15 am

Thanks for the info – know how to start services automatically at boot time now :-)

Comment by TheLinuxBlog.com

March 5, 2010 @ 9:46 am

Thanks for the feedback Thomas.

Comment by TheLinuxBlog.com

May 19, 2010 @ 8:56 pm

@Thomas you can use “setup” or ntsysv for starting services at boot time

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>