How to find startup items in CentOS 7

I found startup application in ubuntu for turning off/on startup items. But in CentOS, it does not have. But am able to use with the help of systemctl command. Before turn off/on process using systemctl, i need to find which are all services are started on system booting time. How to find it?


Hi first of all find the the startup script where it was located.

for ex:
#whereis httpd

next move the script file to /usr/sbin

#mv /path of the file /usr/sbin

and configure the rc.local to start the service at boot time

#vim /etc/rc.local

inside rc.local

/usr/sbin/httpd start

try this

and also for checking all the service which are started on system boot time

#chkconfig --list | grep -i β€˜on’

if you want to find the scripts where they are located you should move to the sub-directory

For example if you have a runlevel of 5 is configured in your /etc/initab then the init process will work through the list of startup scripts located in /etc/rc.d/rc5.d. These startup scripts start either with the letter β€œS” or β€œK”. For example the startup script for (httpd) is like S85httpd. At the boot time the script S85httpd is started by the init processes.

1 Like

To see the services that start upon boot:

systemctl list-units  

You can check the systemd cheatsheet comapred to sysv you can use the table here:


systemctl status service name:

systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:httpd(8)

on the above example you can see disabled that means the httpd is not enabled at startup. If you do systemctl enable httpd then check with systemctl status httpd then you will see enable && on earlier version of linux machines chkconfig --list was used for this but now with systemd it is different.

Jaivik Shrestha