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. |
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. |
Quote:
[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~]$ |
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. |
This Cheat Sheet might help you.
|
All times are GMT -5. The time now is 04:51 PM. |