LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-18-2016, 02:55 PM   #1
krishnar
Member
 
Registered: May 2016
Posts: 32

Rep: Reputation: Disabled
Chkconfig command


Hi All,

I am a newbie to Linux world. So please excuse if this is a dumb question.

I was trying to learn the chkconfig command. When I list the services with that command, I don't see all services getting listed.

[ec2-user@machine ~]$ 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.

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

choose_repo 0 off 1 off 2 on 3 on 4 on 5 on 6 off
netconsole 0 off 1 off 2 off 3 off 4 off 5 off 6 off
network 0 off 1 off 2 on 3 on 4 on 5 on 6 off
rh-cloud-firstboot 0 off 1 off 2 off 3 off 4 off 5 off 6 off
rhnsd 0 off 1 off 2 on 3 on 4 on 5 on 6 off
[ec2-user@machine~]$

If I try to list nginx service, I am getting this error.

[ec2-user@machine ~]$ chkconfig --list nginx

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

If you want to list systemd services use 'systemctl list-unit-files'.
To see services enabled on particular target use
'systemctl list-dependencies [target]'.

error reading information on service nginx: No such file or directory


Any help would be appreciated.
 
Old 05-18-2016, 03:02 PM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
What distro are you using? Form you output it doesn't look like nginx is supposed to run.

Have a look at Redhat's guide.

Last edited by lazydog; 05-18-2016 at 03:05 PM.
 
Old 05-18-2016, 03:07 PM   #3
krishnar
Member
 
Registered: May 2016
Posts: 32

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lazydog View Post
What distro are you using? Form you output it doesn't look like nginx is supposed to run.

Have a look at Redhat's guide.
Nginx is running and I am using RHEL7

[ec2-user@machine~]$ sudo netstat -anp | grep nginx
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 759/nginx: master p
unix 3 [ ] STREAM CONNECTED 15398 759/nginx: master p
unix 3 [ ] STREAM CONNECTED 15397 759/nginx: master p

[ec2-user@machine~]$ systemctl | grep nginx
nginx.service loaded active running nginx - high performance web server

[ec2-user@ip-10-17-6-90 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
[ec2-user@machine~]$
 
Old 05-19-2016, 06:07 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
chkconfig is only provided for legacy use of RH SysVinit services that have not been converted to systemd.

The only services you will see are those that reside in /etc/init.d. For RH 7, there should be a README file there that describes what is going on, and references to documentation.
 
Old 05-19-2016, 10:37 AM   #5
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
This Cheat Sheet might help you.
 
  


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
Equivalent command 'chkconfig' in Solaris? thomas2004ch Solaris / OpenSolaris 2 07-04-2013 04:17 PM
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 12:31 PM
what is function & command equality to chkconfig command? hocheetiong Linux - Newbie 2 11-17-2008 08:06 PM
chkconfig : command not found sd37167 Linux - Server 4 08-30-2006 05:30 PM
chkconfig command for RH9? partyk1d24 Linux - Software 5 10-22-2005 10:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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