Command to list services that start on startup?












127















Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.










share|improve this question





























    127















    Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.










    share|improve this question



























      127












      127








      127


      48






      Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.










      share|improve this question
















      Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.







      services upstart systemd init.d






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 22 '18 at 18:48









      Mahdi

      1,061419




      1,061419










      asked Jul 28 '10 at 23:40









      Eric HEric H

      738275




      738275






















          8 Answers
          8






          active

          oldest

          votes


















          103














          You can simply use the initctl list shell command to list the contents of /etc/init rather than the suggested dbus-send command.






          share|improve this answer

































            99














            The quick answer is: It depends on your init system.



            The long answer is: For current versions of Ubuntu, you probably have a mix of Upstart, and SystemV. Newer versions of Ubuntu after 15.04 "Vivid Vervet" (and other Linux distros like RHEL/CentOS 7) are moving to use SystemD.



            Upstart




            • Upstart Documentation


            To list all services:



            initctl list


            To list all Upstart services and run initctl show-config on them, this one-liner may be helpful:



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


            System V




            • SysV Runlevels Documentation


            To list all services:



            service --status-all


            OR:



            # for init scripts:
            ls /etc/init.d/

            # for runlevel symlinks:
            ls /etc/rc*.d/


            SystemD




            • SystemD for Upstart Users

            • FedoraProject SystemD Documentation

            • RHEL 7: Managing Services with SystemD

            • RedHat: SystemD Overview


            To list all services:



            systemctl list-unit-files --type=service


            OR:



            ls /lib/systemd/system/*.service /etc/systemd/system/*.service





            share|improve this answer



















            • 5





              This should be the accepted answer.

              – sjas
              Dec 6 '16 at 13:02



















            13














            The /etc/init.d and /etc/rc.* directories have been superseded by the 'upstart' init tool. Although scripts in these directories will be executed as expected, the new method for running things on init is defined by files in /etc/init/



            You can list all of the upstart jobs with by querying upstart over dbus:



            dbus-send --print-reply --system --dest=com.ubuntu.Upstart 
            /com/ubuntu/Upstart com.ubuntu.Upstart0_6.GetAllJobs


            You may have to change 0_6 to reflect the version of upstart you have. This command works on my lucid install.






            share|improve this answer





















            • 3





              @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

              – Jeremy Kerr
              Feb 24 '11 at 4:48



















            12














            If you want a nice graphical representation of services and time it takes to boot try:



            apt-get install bootchart





            share|improve this answer

































              11














              Id use initctl show-config <servicename> to really get the details of when/if your service will start during boot.



              Like so:



              $ initctl show-config myservice
              myservice
              start on runlevel [2345]
              stop on runlevel [!2345]


              Or for NFS4 idmap-daemon:



              $ initctl show-config idmapd
              idmapd
              start on (local-filesystems or mounting TYPE=nfs4)
              stop on runlevel [06]


              chkconfig is only preferable on RedHat based systems imho.






              share|improve this answer



















              • 1





                This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                – Cerin
                Sep 8 '16 at 15:35











              • This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                – Gabriel Netto
                Dec 12 '16 at 12:59



















              8














              On 12.04 we could use:



              sudo apt-get install chkconfig
              chkconfig --list


              but it was removed in 12.10.



              Sample output:



              acpi-support              0:off  1:off  2:on   3:on   4:on   5:on   6:off
              acpid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
              apparmor 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on





              share|improve this answer





















              • 2





                Doesn't work in Ubuntu. packages.ubuntu.com/…

                – A.B.
                Apr 24 '15 at 7:21











              • @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                – Ciro Santilli 新疆改造中心 六四事件 法轮功
                Apr 24 '15 at 7:58











              • On Precise: packages.ubuntu.com/precise/chkconfig

                – Ciro Santilli 新疆改造中心 六四事件 法轮功
                Apr 24 '15 at 7:59



















              0














              Besides system services and scripts under:




              /etc/init.d/
              /lib/systemd/system/
              /etc/systemd/system/




              There are probably AutoStart Applications too, for example:



              find / -name "*autostart*"

              ls -1 "/etc/xdg/autostart" "/home/$USER/.config/autostart" "/usr/share/gdm/autostart" "/usr/share/gnome/autostart"





              share|improve this answer































                -2














                Using gawk:



                ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}'


                Sample output:



                $ ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}' | egrep README
                README 0,1,2,3,4,5,6,S





                share|improve this answer

























                  Your Answer








                  StackExchange.ready(function() {
                  var channelOptions = {
                  tags: "".split(" "),
                  id: "89"
                  };
                  initTagRenderer("".split(" "), "".split(" "), channelOptions);

                  StackExchange.using("externalEditor", function() {
                  // Have to fire editor after snippets, if snippets enabled
                  if (StackExchange.settings.snippets.snippetsEnabled) {
                  StackExchange.using("snippets", function() {
                  createEditor();
                  });
                  }
                  else {
                  createEditor();
                  }
                  });

                  function createEditor() {
                  StackExchange.prepareEditor({
                  heartbeatType: 'answer',
                  autoActivateHeartbeat: false,
                  convertImagesToLinks: true,
                  noModals: true,
                  showLowRepImageUploadWarning: true,
                  reputationToPostImages: 10,
                  bindNavPrevention: true,
                  postfix: "",
                  imageUploader: {
                  brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                  contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                  allowUrls: true
                  },
                  onDemand: true,
                  discardSelector: ".discard-answer"
                  ,immediatelyShowMarkdownHelp:true
                  });


                  }
                  });














                  draft saved

                  draft discarded


















                  StackExchange.ready(
                  function () {
                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f218%2fcommand-to-list-services-that-start-on-startup%23new-answer', 'question_page');
                  }
                  );

                  Post as a guest















                  Required, but never shown

























                  8 Answers
                  8






                  active

                  oldest

                  votes








                  8 Answers
                  8






                  active

                  oldest

                  votes









                  active

                  oldest

                  votes






                  active

                  oldest

                  votes









                  103














                  You can simply use the initctl list shell command to list the contents of /etc/init rather than the suggested dbus-send command.






                  share|improve this answer






























                    103














                    You can simply use the initctl list shell command to list the contents of /etc/init rather than the suggested dbus-send command.






                    share|improve this answer




























                      103












                      103








                      103







                      You can simply use the initctl list shell command to list the contents of /etc/init rather than the suggested dbus-send command.






                      share|improve this answer















                      You can simply use the initctl list shell command to list the contents of /etc/init rather than the suggested dbus-send command.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Jan 10 '14 at 21:33









                      BuZZ-dEE

                      9,280115170




                      9,280115170










                      answered Oct 13 '10 at 2:04









                      ScottScott

                      1,208196




                      1,208196

























                          99














                          The quick answer is: It depends on your init system.



                          The long answer is: For current versions of Ubuntu, you probably have a mix of Upstart, and SystemV. Newer versions of Ubuntu after 15.04 "Vivid Vervet" (and other Linux distros like RHEL/CentOS 7) are moving to use SystemD.



                          Upstart




                          • Upstart Documentation


                          To list all services:



                          initctl list


                          To list all Upstart services and run initctl show-config on them, this one-liner may be helpful:



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


                          System V




                          • SysV Runlevels Documentation


                          To list all services:



                          service --status-all


                          OR:



                          # for init scripts:
                          ls /etc/init.d/

                          # for runlevel symlinks:
                          ls /etc/rc*.d/


                          SystemD




                          • SystemD for Upstart Users

                          • FedoraProject SystemD Documentation

                          • RHEL 7: Managing Services with SystemD

                          • RedHat: SystemD Overview


                          To list all services:



                          systemctl list-unit-files --type=service


                          OR:



                          ls /lib/systemd/system/*.service /etc/systemd/system/*.service





                          share|improve this answer



















                          • 5





                            This should be the accepted answer.

                            – sjas
                            Dec 6 '16 at 13:02
















                          99














                          The quick answer is: It depends on your init system.



                          The long answer is: For current versions of Ubuntu, you probably have a mix of Upstart, and SystemV. Newer versions of Ubuntu after 15.04 "Vivid Vervet" (and other Linux distros like RHEL/CentOS 7) are moving to use SystemD.



                          Upstart




                          • Upstart Documentation


                          To list all services:



                          initctl list


                          To list all Upstart services and run initctl show-config on them, this one-liner may be helpful:



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


                          System V




                          • SysV Runlevels Documentation


                          To list all services:



                          service --status-all


                          OR:



                          # for init scripts:
                          ls /etc/init.d/

                          # for runlevel symlinks:
                          ls /etc/rc*.d/


                          SystemD




                          • SystemD for Upstart Users

                          • FedoraProject SystemD Documentation

                          • RHEL 7: Managing Services with SystemD

                          • RedHat: SystemD Overview


                          To list all services:



                          systemctl list-unit-files --type=service


                          OR:



                          ls /lib/systemd/system/*.service /etc/systemd/system/*.service





                          share|improve this answer



















                          • 5





                            This should be the accepted answer.

                            – sjas
                            Dec 6 '16 at 13:02














                          99












                          99








                          99







                          The quick answer is: It depends on your init system.



                          The long answer is: For current versions of Ubuntu, you probably have a mix of Upstart, and SystemV. Newer versions of Ubuntu after 15.04 "Vivid Vervet" (and other Linux distros like RHEL/CentOS 7) are moving to use SystemD.



                          Upstart




                          • Upstart Documentation


                          To list all services:



                          initctl list


                          To list all Upstart services and run initctl show-config on them, this one-liner may be helpful:



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


                          System V




                          • SysV Runlevels Documentation


                          To list all services:



                          service --status-all


                          OR:



                          # for init scripts:
                          ls /etc/init.d/

                          # for runlevel symlinks:
                          ls /etc/rc*.d/


                          SystemD




                          • SystemD for Upstart Users

                          • FedoraProject SystemD Documentation

                          • RHEL 7: Managing Services with SystemD

                          • RedHat: SystemD Overview


                          To list all services:



                          systemctl list-unit-files --type=service


                          OR:



                          ls /lib/systemd/system/*.service /etc/systemd/system/*.service





                          share|improve this answer













                          The quick answer is: It depends on your init system.



                          The long answer is: For current versions of Ubuntu, you probably have a mix of Upstart, and SystemV. Newer versions of Ubuntu after 15.04 "Vivid Vervet" (and other Linux distros like RHEL/CentOS 7) are moving to use SystemD.



                          Upstart




                          • Upstart Documentation


                          To list all services:



                          initctl list


                          To list all Upstart services and run initctl show-config on them, this one-liner may be helpful:



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


                          System V




                          • SysV Runlevels Documentation


                          To list all services:



                          service --status-all


                          OR:



                          # for init scripts:
                          ls /etc/init.d/

                          # for runlevel symlinks:
                          ls /etc/rc*.d/


                          SystemD




                          • SystemD for Upstart Users

                          • FedoraProject SystemD Documentation

                          • RHEL 7: Managing Services with SystemD

                          • RedHat: SystemD Overview


                          To list all services:



                          systemctl list-unit-files --type=service


                          OR:



                          ls /lib/systemd/system/*.service /etc/systemd/system/*.service






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Sep 27 '15 at 3:49









                          TrinitronXTrinitronX

                          1,83111621




                          1,83111621








                          • 5





                            This should be the accepted answer.

                            – sjas
                            Dec 6 '16 at 13:02














                          • 5





                            This should be the accepted answer.

                            – sjas
                            Dec 6 '16 at 13:02








                          5




                          5





                          This should be the accepted answer.

                          – sjas
                          Dec 6 '16 at 13:02





                          This should be the accepted answer.

                          – sjas
                          Dec 6 '16 at 13:02











                          13














                          The /etc/init.d and /etc/rc.* directories have been superseded by the 'upstart' init tool. Although scripts in these directories will be executed as expected, the new method for running things on init is defined by files in /etc/init/



                          You can list all of the upstart jobs with by querying upstart over dbus:



                          dbus-send --print-reply --system --dest=com.ubuntu.Upstart 
                          /com/ubuntu/Upstart com.ubuntu.Upstart0_6.GetAllJobs


                          You may have to change 0_6 to reflect the version of upstart you have. This command works on my lucid install.






                          share|improve this answer





















                          • 3





                            @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

                            – Jeremy Kerr
                            Feb 24 '11 at 4:48
















                          13














                          The /etc/init.d and /etc/rc.* directories have been superseded by the 'upstart' init tool. Although scripts in these directories will be executed as expected, the new method for running things on init is defined by files in /etc/init/



                          You can list all of the upstart jobs with by querying upstart over dbus:



                          dbus-send --print-reply --system --dest=com.ubuntu.Upstart 
                          /com/ubuntu/Upstart com.ubuntu.Upstart0_6.GetAllJobs


                          You may have to change 0_6 to reflect the version of upstart you have. This command works on my lucid install.






                          share|improve this answer





















                          • 3





                            @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

                            – Jeremy Kerr
                            Feb 24 '11 at 4:48














                          13












                          13








                          13







                          The /etc/init.d and /etc/rc.* directories have been superseded by the 'upstart' init tool. Although scripts in these directories will be executed as expected, the new method for running things on init is defined by files in /etc/init/



                          You can list all of the upstart jobs with by querying upstart over dbus:



                          dbus-send --print-reply --system --dest=com.ubuntu.Upstart 
                          /com/ubuntu/Upstart com.ubuntu.Upstart0_6.GetAllJobs


                          You may have to change 0_6 to reflect the version of upstart you have. This command works on my lucid install.






                          share|improve this answer















                          The /etc/init.d and /etc/rc.* directories have been superseded by the 'upstart' init tool. Although scripts in these directories will be executed as expected, the new method for running things on init is defined by files in /etc/init/



                          You can list all of the upstart jobs with by querying upstart over dbus:



                          dbus-send --print-reply --system --dest=com.ubuntu.Upstart 
                          /com/ubuntu/Upstart com.ubuntu.Upstart0_6.GetAllJobs


                          You may have to change 0_6 to reflect the version of upstart you have. This command works on my lucid install.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Jan 10 '14 at 21:35









                          BuZZ-dEE

                          9,280115170




                          9,280115170










                          answered Jul 29 '10 at 3:30









                          Jeremy KerrJeremy Kerr

                          19.4k34058




                          19.4k34058








                          • 3





                            @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

                            – Jeremy Kerr
                            Feb 24 '11 at 4:48














                          • 3





                            @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

                            – Jeremy Kerr
                            Feb 24 '11 at 4:48








                          3




                          3





                          @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

                          – Jeremy Kerr
                          Feb 24 '11 at 4:48





                          @Eric H: Could your set the answer below as correct instead - initctl list is much nicer than this dbus command. I'd like to leave this answer here for reference (rather than deleting it completely) though.

                          – Jeremy Kerr
                          Feb 24 '11 at 4:48











                          12














                          If you want a nice graphical representation of services and time it takes to boot try:



                          apt-get install bootchart





                          share|improve this answer






























                            12














                            If you want a nice graphical representation of services and time it takes to boot try:



                            apt-get install bootchart





                            share|improve this answer




























                              12












                              12








                              12







                              If you want a nice graphical representation of services and time it takes to boot try:



                              apt-get install bootchart





                              share|improve this answer















                              If you want a nice graphical representation of services and time it takes to boot try:



                              apt-get install bootchart






                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Jan 10 '14 at 21:35









                              BuZZ-dEE

                              9,280115170




                              9,280115170










                              answered Oct 13 '10 at 3:39







                              john






























                                  11














                                  Id use initctl show-config <servicename> to really get the details of when/if your service will start during boot.



                                  Like so:



                                  $ initctl show-config myservice
                                  myservice
                                  start on runlevel [2345]
                                  stop on runlevel [!2345]


                                  Or for NFS4 idmap-daemon:



                                  $ initctl show-config idmapd
                                  idmapd
                                  start on (local-filesystems or mounting TYPE=nfs4)
                                  stop on runlevel [06]


                                  chkconfig is only preferable on RedHat based systems imho.






                                  share|improve this answer



















                                  • 1





                                    This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                                    – Cerin
                                    Sep 8 '16 at 15:35











                                  • This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                                    – Gabriel Netto
                                    Dec 12 '16 at 12:59
















                                  11














                                  Id use initctl show-config <servicename> to really get the details of when/if your service will start during boot.



                                  Like so:



                                  $ initctl show-config myservice
                                  myservice
                                  start on runlevel [2345]
                                  stop on runlevel [!2345]


                                  Or for NFS4 idmap-daemon:



                                  $ initctl show-config idmapd
                                  idmapd
                                  start on (local-filesystems or mounting TYPE=nfs4)
                                  stop on runlevel [06]


                                  chkconfig is only preferable on RedHat based systems imho.






                                  share|improve this answer



















                                  • 1





                                    This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                                    – Cerin
                                    Sep 8 '16 at 15:35











                                  • This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                                    – Gabriel Netto
                                    Dec 12 '16 at 12:59














                                  11












                                  11








                                  11







                                  Id use initctl show-config <servicename> to really get the details of when/if your service will start during boot.



                                  Like so:



                                  $ initctl show-config myservice
                                  myservice
                                  start on runlevel [2345]
                                  stop on runlevel [!2345]


                                  Or for NFS4 idmap-daemon:



                                  $ initctl show-config idmapd
                                  idmapd
                                  start on (local-filesystems or mounting TYPE=nfs4)
                                  stop on runlevel [06]


                                  chkconfig is only preferable on RedHat based systems imho.






                                  share|improve this answer













                                  Id use initctl show-config <servicename> to really get the details of when/if your service will start during boot.



                                  Like so:



                                  $ initctl show-config myservice
                                  myservice
                                  start on runlevel [2345]
                                  stop on runlevel [!2345]


                                  Or for NFS4 idmap-daemon:



                                  $ initctl show-config idmapd
                                  idmapd
                                  start on (local-filesystems or mounting TYPE=nfs4)
                                  stop on runlevel [06]


                                  chkconfig is only preferable on RedHat based systems imho.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Jul 21 '14 at 10:46









                                  CBmemnonCBmemnon

                                  11112




                                  11112








                                  • 1





                                    This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                                    – Cerin
                                    Sep 8 '16 at 15:35











                                  • This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                                    – Gabriel Netto
                                    Dec 12 '16 at 12:59














                                  • 1





                                    This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                                    – Cerin
                                    Sep 8 '16 at 15:35











                                  • This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                                    – Gabriel Netto
                                    Dec 12 '16 at 12:59








                                  1




                                  1





                                  This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                                  – Cerin
                                  Sep 8 '16 at 15:35





                                  This is the correct answer. I have no idea why all the wrong and incomplete answers are so highly upvoted.

                                  – Cerin
                                  Sep 8 '16 at 15:35













                                  This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                                  – Gabriel Netto
                                  Dec 12 '16 at 12:59





                                  This doenst work for people using SysV, I agree this it a good answer but it is incomplete.

                                  – Gabriel Netto
                                  Dec 12 '16 at 12:59











                                  8














                                  On 12.04 we could use:



                                  sudo apt-get install chkconfig
                                  chkconfig --list


                                  but it was removed in 12.10.



                                  Sample output:



                                  acpi-support              0:off  1:off  2:on   3:on   4:on   5:on   6:off
                                  acpid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
                                  apparmor 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on





                                  share|improve this answer





















                                  • 2





                                    Doesn't work in Ubuntu. packages.ubuntu.com/…

                                    – A.B.
                                    Apr 24 '15 at 7:21











                                  • @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:58











                                  • On Precise: packages.ubuntu.com/precise/chkconfig

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:59
















                                  8














                                  On 12.04 we could use:



                                  sudo apt-get install chkconfig
                                  chkconfig --list


                                  but it was removed in 12.10.



                                  Sample output:



                                  acpi-support              0:off  1:off  2:on   3:on   4:on   5:on   6:off
                                  acpid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
                                  apparmor 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on





                                  share|improve this answer





















                                  • 2





                                    Doesn't work in Ubuntu. packages.ubuntu.com/…

                                    – A.B.
                                    Apr 24 '15 at 7:21











                                  • @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:58











                                  • On Precise: packages.ubuntu.com/precise/chkconfig

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:59














                                  8












                                  8








                                  8







                                  On 12.04 we could use:



                                  sudo apt-get install chkconfig
                                  chkconfig --list


                                  but it was removed in 12.10.



                                  Sample output:



                                  acpi-support              0:off  1:off  2:on   3:on   4:on   5:on   6:off
                                  acpid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
                                  apparmor 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on





                                  share|improve this answer















                                  On 12.04 we could use:



                                  sudo apt-get install chkconfig
                                  chkconfig --list


                                  but it was removed in 12.10.



                                  Sample output:



                                  acpi-support              0:off  1:off  2:on   3:on   4:on   5:on   6:off
                                  acpid 0:off 1:off 2:off 3:off 4:off 5:off 6:off
                                  apparmor 0:off 1:off 2:off 3:off 4:off 5:off 6:off S:on






                                  share|improve this answer














                                  share|improve this answer



                                  share|improve this answer








                                  edited Apr 13 '17 at 12:23









                                  Community

                                  1




                                  1










                                  answered Mar 6 '14 at 6:26









                                  Ciro Santilli 新疆改造中心 六四事件 法轮功Ciro Santilli 新疆改造中心 六四事件 法轮功

                                  9,67944450




                                  9,67944450








                                  • 2





                                    Doesn't work in Ubuntu. packages.ubuntu.com/…

                                    – A.B.
                                    Apr 24 '15 at 7:21











                                  • @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:58











                                  • On Precise: packages.ubuntu.com/precise/chkconfig

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:59














                                  • 2





                                    Doesn't work in Ubuntu. packages.ubuntu.com/…

                                    – A.B.
                                    Apr 24 '15 at 7:21











                                  • @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:58











                                  • On Precise: packages.ubuntu.com/precise/chkconfig

                                    – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                    Apr 24 '15 at 7:59








                                  2




                                  2





                                  Doesn't work in Ubuntu. packages.ubuntu.com/…

                                  – A.B.
                                  Apr 24 '15 at 7:21





                                  Doesn't work in Ubuntu. packages.ubuntu.com/…

                                  – A.B.
                                  Apr 24 '15 at 7:21













                                  @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                                  – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                  Apr 24 '15 at 7:58





                                  @A.B. thanks for letting me know! It is rare for downvoters to comment nowadays: it requires courage and allows me to learn. updated with the version it works in.

                                  – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                  Apr 24 '15 at 7:58













                                  On Precise: packages.ubuntu.com/precise/chkconfig

                                  – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                  Apr 24 '15 at 7:59





                                  On Precise: packages.ubuntu.com/precise/chkconfig

                                  – Ciro Santilli 新疆改造中心 六四事件 法轮功
                                  Apr 24 '15 at 7:59











                                  0














                                  Besides system services and scripts under:




                                  /etc/init.d/
                                  /lib/systemd/system/
                                  /etc/systemd/system/




                                  There are probably AutoStart Applications too, for example:



                                  find / -name "*autostart*"

                                  ls -1 "/etc/xdg/autostart" "/home/$USER/.config/autostart" "/usr/share/gdm/autostart" "/usr/share/gnome/autostart"





                                  share|improve this answer




























                                    0














                                    Besides system services and scripts under:




                                    /etc/init.d/
                                    /lib/systemd/system/
                                    /etc/systemd/system/




                                    There are probably AutoStart Applications too, for example:



                                    find / -name "*autostart*"

                                    ls -1 "/etc/xdg/autostart" "/home/$USER/.config/autostart" "/usr/share/gdm/autostart" "/usr/share/gnome/autostart"





                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      Besides system services and scripts under:




                                      /etc/init.d/
                                      /lib/systemd/system/
                                      /etc/systemd/system/




                                      There are probably AutoStart Applications too, for example:



                                      find / -name "*autostart*"

                                      ls -1 "/etc/xdg/autostart" "/home/$USER/.config/autostart" "/usr/share/gdm/autostart" "/usr/share/gnome/autostart"





                                      share|improve this answer













                                      Besides system services and scripts under:




                                      /etc/init.d/
                                      /lib/systemd/system/
                                      /etc/systemd/system/




                                      There are probably AutoStart Applications too, for example:



                                      find / -name "*autostart*"

                                      ls -1 "/etc/xdg/autostart" "/home/$USER/.config/autostart" "/usr/share/gdm/autostart" "/usr/share/gnome/autostart"






                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Jan 29 at 9:37









                                      Noam ManosNoam Manos

                                      1012




                                      1012























                                          -2














                                          Using gawk:



                                          ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}'


                                          Sample output:



                                          $ ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}' | egrep README
                                          README 0,1,2,3,4,5,6,S





                                          share|improve this answer






























                                            -2














                                            Using gawk:



                                            ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}'


                                            Sample output:



                                            $ ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}' | egrep README
                                            README 0,1,2,3,4,5,6,S





                                            share|improve this answer




























                                              -2












                                              -2








                                              -2







                                              Using gawk:



                                              ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}'


                                              Sample output:



                                              $ ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}' | egrep README
                                              README 0,1,2,3,4,5,6,S





                                              share|improve this answer















                                              Using gawk:



                                              ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}'


                                              Sample output:



                                              $ ls -l /etc/rc*.d/* | gawk 'match($0, /rc([0-6S]).d.*/(.*)$/, a) {l[a[2]]=l[a[2]]a[1]","}; END{for(v in l){print v,substr(l[v],1,length(l[v])-1)}}' | egrep README
                                              README 0,1,2,3,4,5,6,S






                                              share|improve this answer














                                              share|improve this answer



                                              share|improve this answer








                                              edited Jan 7 '17 at 17:41









                                              muru

                                              1




                                              1










                                              answered Jan 7 '17 at 16:04









                                              Carlos AlvsanCarlos Alvsan

                                              1




                                              1






























                                                  draft saved

                                                  draft discarded




















































                                                  Thanks for contributing an answer to Ask Ubuntu!


                                                  • Please be sure to answer the question. Provide details and share your research!

                                                  But avoid



                                                  • Asking for help, clarification, or responding to other answers.

                                                  • Making statements based on opinion; back them up with references or personal experience.


                                                  To learn more, see our tips on writing great answers.




                                                  draft saved


                                                  draft discarded














                                                  StackExchange.ready(
                                                  function () {
                                                  StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f218%2fcommand-to-list-services-that-start-on-startup%23new-answer', 'question_page');
                                                  }
                                                  );

                                                  Post as a guest















                                                  Required, but never shown





















































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown

































                                                  Required, but never shown














                                                  Required, but never shown












                                                  Required, but never shown







                                                  Required, but never shown







                                                  Popular posts from this blog

                                                  How to make a Squid Proxy server?

                                                  Is this a new Fibonacci Identity?

                                                  Touch on Surface Book