In this article we will introduce some command that we can be use on showing startup program on the linux Operating system.

ie: Ubuntu/Centos

Command 1:

This command are be able working on Ubuntu.

This is a shell command to list the contents of /etc/init

just simply type

initctl list

and you will get some process are starting, process id, and the status of the process. ie: start/stop

when you run the command , if you found out below error.

initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

We can fix it by below command:

apt-get install upstart
update-initramfs -u

and in the end reboot your machines and test the command again, it could be working fine.

If you wish to only show all the upstart services can be done by below command:

initctl list | awk '{ print $1 }' | xargs -n1 initctl show-config

Command 2:

For SystemV

We can use below command to see is it enable on runlevel

service --status-all

Command 3:

This command can be using on Ubuntu or Centos which is using SystemD

systemctl list-unit-files --type=service

It will show all the status of the services, and you can see something like enable,disabled.

Command 4:

If you wish to enable some of the services to be running when your machines bootup.

It can be done by using below command:

systemctl enable service_name

or if you wish to actually disable the services, use below command

systemctl disable service_name

Thanks for staying with us, if you found this article are useful, share it to your friends.

1 reply
  1. veggetti recipes
    veggetti recipes says:

    I simply couldn’t depart your website prior to suggesting that I really
    enjoyed the standard info an individual supply to your visitors?
    Is gonna be again often in order to check up on new posts

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *