How do I stop Apache2 from automatically starting on boot?XAMPP: Starting Apache…failHow to disable the default apache serverubuntu excessive cpu usage by tmp filesTrying to install NGINX in Ubuntu 16 but won't install nginx and getting Error about locale settingshow to stop apache2, mysql from starting automatically as computer starts?How to keep apache and mysql from starting automaticallyHow to prevent Tor from starting automatically on Ubuntu server?how to remove apache2?apache2 not starting automatically in Ubuntu 14.04sudo service apache2 stop no longer works?apache2 can't stop and nginx can't startUbuntu 14.04.5 LTS : apache2 won't start on boot, possibly after apt-get upgradeStarting apache2 server from terminalHow Can I stop Apache2 on Ubuntu 18.04?

Efficiently merge handle parallel feature branches in SFDX

How do I keep an essay about "feeling flat" from feeling flat?

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

How could Frankenstein get the parts for his _second_ creature?

Confused about a passage in Harry Potter y la piedra filosofal

voltage of sounds of mp3files

What is difference between behavior and behaviour

How will losing mobility of one hand affect my career as a programmer?

Generic lambda vs generic function give different behaviour

Your magic is very sketchy

Is it okay / does it make sense for another player to join a running game of Munchkin?

Do there exist finite commutative rings with identity that are not Bézout rings?

Lay out the Carpet

Everything Bob says is false. How does he get people to trust him?

There is only s̶i̶x̶t̶y one place he can be

Failed to fetch jessie backports repository

The baby cries all morning

Why Were Madagascar and New Zealand Discovered So Late?

If you attempt to grapple an opponent that you are hidden from, do they roll at disadvantage?

Implement the Thanos sorting algorithm

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

How can I use the arrow sign in my bash prompt?

Was Spock the First Vulcan in Starfleet?

Go Pregnant or Go Home



How do I stop Apache2 from automatically starting on boot?


XAMPP: Starting Apache…failHow to disable the default apache serverubuntu excessive cpu usage by tmp filesTrying to install NGINX in Ubuntu 16 but won't install nginx and getting Error about locale settingshow to stop apache2, mysql from starting automatically as computer starts?How to keep apache and mysql from starting automaticallyHow to prevent Tor from starting automatically on Ubuntu server?how to remove apache2?apache2 not starting automatically in Ubuntu 14.04sudo service apache2 stop no longer works?apache2 can't stop and nginx can't startUbuntu 14.04.5 LTS : apache2 won't start on boot, possibly after apt-get upgradeStarting apache2 server from terminalHow Can I stop Apache2 on Ubuntu 18.04?













158















How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.










share|improve this question



















  • 1





    Perhaps someone can be more specific, but I can point you in the right direction... in /etc, there are directories for rc*.d, which contain all the start/stop scripts, called, I think, init scripts. You'll see links to scripts that are in /etc/init.d, and starting with either "k" or "s", for "kill" or "start", and a number which is the ordering.

    – Marty Fried
    Aug 1 '12 at 2:27











  • Yes, I knew about the /etc/rcX.d directories, but I searched for it to find out about some nicer tool, than just manually renaming files (life is too short). update-rc.d has filled this void.

    – Tomasz Gandor
    Sep 26 '14 at 8:53















158















How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.










share|improve this question



















  • 1





    Perhaps someone can be more specific, but I can point you in the right direction... in /etc, there are directories for rc*.d, which contain all the start/stop scripts, called, I think, init scripts. You'll see links to scripts that are in /etc/init.d, and starting with either "k" or "s", for "kill" or "start", and a number which is the ordering.

    – Marty Fried
    Aug 1 '12 at 2:27











  • Yes, I knew about the /etc/rcX.d directories, but I searched for it to find out about some nicer tool, than just manually renaming files (life is too short). update-rc.d has filled this void.

    – Tomasz Gandor
    Sep 26 '14 at 8:53













158












158








158


84






How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.










share|improve this question
















How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.







apache2 systemd init.d






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









yourcomputergenius

73




73










asked Aug 1 '12 at 2:11









niccolo m.niccolo m.

9563912




9563912







  • 1





    Perhaps someone can be more specific, but I can point you in the right direction... in /etc, there are directories for rc*.d, which contain all the start/stop scripts, called, I think, init scripts. You'll see links to scripts that are in /etc/init.d, and starting with either "k" or "s", for "kill" or "start", and a number which is the ordering.

    – Marty Fried
    Aug 1 '12 at 2:27











  • Yes, I knew about the /etc/rcX.d directories, but I searched for it to find out about some nicer tool, than just manually renaming files (life is too short). update-rc.d has filled this void.

    – Tomasz Gandor
    Sep 26 '14 at 8:53












  • 1





    Perhaps someone can be more specific, but I can point you in the right direction... in /etc, there are directories for rc*.d, which contain all the start/stop scripts, called, I think, init scripts. You'll see links to scripts that are in /etc/init.d, and starting with either "k" or "s", for "kill" or "start", and a number which is the ordering.

    – Marty Fried
    Aug 1 '12 at 2:27











  • Yes, I knew about the /etc/rcX.d directories, but I searched for it to find out about some nicer tool, than just manually renaming files (life is too short). update-rc.d has filled this void.

    – Tomasz Gandor
    Sep 26 '14 at 8:53







1




1





Perhaps someone can be more specific, but I can point you in the right direction... in /etc, there are directories for rc*.d, which contain all the start/stop scripts, called, I think, init scripts. You'll see links to scripts that are in /etc/init.d, and starting with either "k" or "s", for "kill" or "start", and a number which is the ordering.

– Marty Fried
Aug 1 '12 at 2:27





Perhaps someone can be more specific, but I can point you in the right direction... in /etc, there are directories for rc*.d, which contain all the start/stop scripts, called, I think, init scripts. You'll see links to scripts that are in /etc/init.d, and starting with either "k" or "s", for "kill" or "start", and a number which is the ordering.

– Marty Fried
Aug 1 '12 at 2:27













Yes, I knew about the /etc/rcX.d directories, but I searched for it to find out about some nicer tool, than just manually renaming files (life is too short). update-rc.d has filled this void.

– Tomasz Gandor
Sep 26 '14 at 8:53





Yes, I knew about the /etc/rcX.d directories, but I searched for it to find out about some nicer tool, than just manually renaming files (life is too short). update-rc.d has filled this void.

– Tomasz Gandor
Sep 26 '14 at 8:53










4 Answers
4






active

oldest

votes


















139














Under the folder /etc/init.d/ you will find all the init scripts for different boot up services, like apache2, networking, etc.



Depending on which runlevel the computer starts in, different services are started.
So from the /etc/init.d/ folder each "service" is linked to one/many/no run level folders named from rc0.d to rc6.d.



To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up.



To disable apache2 simply type:



sudo update-rc.d apache2 disable


This disables apache2 at startup but is not removed so it can be enabled again. To remove the apache2 startup scripts do the following:



To remove apache2 simply type:



sudo update-rc.d -f apache2 remove


Doing this will cause all runlevel folders that are linked to apache2 to be removed.






share|improve this answer




















  • 2





    chkconfig may also help - " chkconfig service_name off "

    – MCR
    Aug 1 '12 at 7:10











  • Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

    – TomDogg
    Apr 29 '15 at 9:34






  • 2





    @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

    – Dale Anderson
    Nov 2 '15 at 20:20







  • 1





    How to restore the service?

    – Eugen Konkov
    Apr 14 '16 at 8:12






  • 9





    Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

    – Eduardo Cuomo
    Jan 17 '17 at 19:37


















190














you could simply disable it by:



sudo update-rc.d apache2 disable


and then if you would like to enable it again:



sudo update-rc.d apache2 enable


depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it.






share|improve this answer




















  • 4





    enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

    – here
    Jan 13 '14 at 3:58






  • 2





    @here sudo update-rc.d apache2 enable played as expected for me

    – Georgios Pligoropoulos
    Feb 9 '14 at 15:12











  • On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

    – Tanner
    Jun 10 '14 at 0:31






  • 1





    Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

    – Daniel Kmak
    Dec 14 '14 at 11:05











  • Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

    – TomDogg
    Apr 29 '15 at 9:33


















47














With systemd we can now use systemctl commands to prevent a service from automatically starting at boot.



here is an example:



sudo systemctl disable apache2


You will still be able to start and stop the service but it won't start up at boot.






share|improve this answer


















  • 2





    Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

    – twan163
    Dec 6 '15 at 23:01






  • 1





    @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

    – mchid
    Dec 8 '15 at 21:55






  • 1





    this worked great on Debian

    – Anupam
    Jul 19 '17 at 12:37






  • 1





    the right answer for debian 9+

    – John
    Nov 24 '17 at 5:12






  • 1





    If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

    – Amil Waduwawara
    Aug 11 '18 at 2:26


















3














Thought I'd just add to the answers by @gsullins and @tomodachi, for future readers who used the accepted answer.



If you've already used:



sudo update-rc.d apache2 remove


You can use the argument defaults to add apache2 back into the autostart



sudo update-rc.d apache2 defaults


Then you're able to enable/disable



sudo update-rc.d apache2 disable
sudo update-rc.d apache2 enable





share|improve this answer





















    protected by Byte Commander Mar 3 '16 at 12:27



    Thank you for your interest in this question.
    Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



    Would you like to answer one of these unanswered questions instead?














    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    139














    Under the folder /etc/init.d/ you will find all the init scripts for different boot up services, like apache2, networking, etc.



    Depending on which runlevel the computer starts in, different services are started.
    So from the /etc/init.d/ folder each "service" is linked to one/many/no run level folders named from rc0.d to rc6.d.



    To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up.



    To disable apache2 simply type:



    sudo update-rc.d apache2 disable


    This disables apache2 at startup but is not removed so it can be enabled again. To remove the apache2 startup scripts do the following:



    To remove apache2 simply type:



    sudo update-rc.d -f apache2 remove


    Doing this will cause all runlevel folders that are linked to apache2 to be removed.






    share|improve this answer




















    • 2





      chkconfig may also help - " chkconfig service_name off "

      – MCR
      Aug 1 '12 at 7:10











    • Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

      – TomDogg
      Apr 29 '15 at 9:34






    • 2





      @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

      – Dale Anderson
      Nov 2 '15 at 20:20







    • 1





      How to restore the service?

      – Eugen Konkov
      Apr 14 '16 at 8:12






    • 9





      Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

      – Eduardo Cuomo
      Jan 17 '17 at 19:37















    139














    Under the folder /etc/init.d/ you will find all the init scripts for different boot up services, like apache2, networking, etc.



    Depending on which runlevel the computer starts in, different services are started.
    So from the /etc/init.d/ folder each "service" is linked to one/many/no run level folders named from rc0.d to rc6.d.



    To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up.



    To disable apache2 simply type:



    sudo update-rc.d apache2 disable


    This disables apache2 at startup but is not removed so it can be enabled again. To remove the apache2 startup scripts do the following:



    To remove apache2 simply type:



    sudo update-rc.d -f apache2 remove


    Doing this will cause all runlevel folders that are linked to apache2 to be removed.






    share|improve this answer




















    • 2





      chkconfig may also help - " chkconfig service_name off "

      – MCR
      Aug 1 '12 at 7:10











    • Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

      – TomDogg
      Apr 29 '15 at 9:34






    • 2





      @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

      – Dale Anderson
      Nov 2 '15 at 20:20







    • 1





      How to restore the service?

      – Eugen Konkov
      Apr 14 '16 at 8:12






    • 9





      Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

      – Eduardo Cuomo
      Jan 17 '17 at 19:37













    139












    139








    139







    Under the folder /etc/init.d/ you will find all the init scripts for different boot up services, like apache2, networking, etc.



    Depending on which runlevel the computer starts in, different services are started.
    So from the /etc/init.d/ folder each "service" is linked to one/many/no run level folders named from rc0.d to rc6.d.



    To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up.



    To disable apache2 simply type:



    sudo update-rc.d apache2 disable


    This disables apache2 at startup but is not removed so it can be enabled again. To remove the apache2 startup scripts do the following:



    To remove apache2 simply type:



    sudo update-rc.d -f apache2 remove


    Doing this will cause all runlevel folders that are linked to apache2 to be removed.






    share|improve this answer















    Under the folder /etc/init.d/ you will find all the init scripts for different boot up services, like apache2, networking, etc.



    Depending on which runlevel the computer starts in, different services are started.
    So from the /etc/init.d/ folder each "service" is linked to one/many/no run level folders named from rc0.d to rc6.d.



    To keep things simple there is a tool for removing/adding these links, hence removing or adding scripts to and from start up.



    To disable apache2 simply type:



    sudo update-rc.d apache2 disable


    This disables apache2 at startup but is not removed so it can be enabled again. To remove the apache2 startup scripts do the following:



    To remove apache2 simply type:



    sudo update-rc.d -f apache2 remove


    Doing this will cause all runlevel folders that are linked to apache2 to be removed.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Feb 4 '18 at 13:46









    MDijkstra

    32




    32










    answered Aug 1 '12 at 2:47









    tomodachitomodachi

    9,38742240




    9,38742240







    • 2





      chkconfig may also help - " chkconfig service_name off "

      – MCR
      Aug 1 '12 at 7:10











    • Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

      – TomDogg
      Apr 29 '15 at 9:34






    • 2





      @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

      – Dale Anderson
      Nov 2 '15 at 20:20







    • 1





      How to restore the service?

      – Eugen Konkov
      Apr 14 '16 at 8:12






    • 9





      Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

      – Eduardo Cuomo
      Jan 17 '17 at 19:37












    • 2





      chkconfig may also help - " chkconfig service_name off "

      – MCR
      Aug 1 '12 at 7:10











    • Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

      – TomDogg
      Apr 29 '15 at 9:34






    • 2





      @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

      – Dale Anderson
      Nov 2 '15 at 20:20







    • 1





      How to restore the service?

      – Eugen Konkov
      Apr 14 '16 at 8:12






    • 9





      Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

      – Eduardo Cuomo
      Jan 17 '17 at 19:37







    2




    2





    chkconfig may also help - " chkconfig service_name off "

    – MCR
    Aug 1 '12 at 7:10





    chkconfig may also help - " chkconfig service_name off "

    – MCR
    Aug 1 '12 at 7:10













    Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

    – TomDogg
    Apr 29 '15 at 9:34





    Doesn't work anymore: The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. (...)

    – TomDogg
    Apr 29 '15 at 9:34




    2




    2





    @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

    – Dale Anderson
    Nov 2 '15 at 20:20






    @TomDogg, can you specify the versions you were working with? This answer works for Apache 2 on Ubuntu 14.04.3

    – Dale Anderson
    Nov 2 '15 at 20:20





    1




    1





    How to restore the service?

    – Eugen Konkov
    Apr 14 '16 at 8:12





    How to restore the service?

    – Eugen Konkov
    Apr 14 '16 at 8:12




    9




    9





    Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

    – Eduardo Cuomo
    Jan 17 '17 at 19:37





    Warning! This will REMOVE the service! Use sudo update-rc.d apache2 disable.

    – Eduardo Cuomo
    Jan 17 '17 at 19:37













    190














    you could simply disable it by:



    sudo update-rc.d apache2 disable


    and then if you would like to enable it again:



    sudo update-rc.d apache2 enable


    depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it.






    share|improve this answer




















    • 4





      enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

      – here
      Jan 13 '14 at 3:58






    • 2





      @here sudo update-rc.d apache2 enable played as expected for me

      – Georgios Pligoropoulos
      Feb 9 '14 at 15:12











    • On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

      – Tanner
      Jun 10 '14 at 0:31






    • 1





      Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

      – Daniel Kmak
      Dec 14 '14 at 11:05











    • Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

      – TomDogg
      Apr 29 '15 at 9:33















    190














    you could simply disable it by:



    sudo update-rc.d apache2 disable


    and then if you would like to enable it again:



    sudo update-rc.d apache2 enable


    depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it.






    share|improve this answer




















    • 4





      enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

      – here
      Jan 13 '14 at 3:58






    • 2





      @here sudo update-rc.d apache2 enable played as expected for me

      – Georgios Pligoropoulos
      Feb 9 '14 at 15:12











    • On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

      – Tanner
      Jun 10 '14 at 0:31






    • 1





      Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

      – Daniel Kmak
      Dec 14 '14 at 11:05











    • Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

      – TomDogg
      Apr 29 '15 at 9:33













    190












    190








    190







    you could simply disable it by:



    sudo update-rc.d apache2 disable


    and then if you would like to enable it again:



    sudo update-rc.d apache2 enable


    depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it.






    share|improve this answer















    you could simply disable it by:



    sudo update-rc.d apache2 disable


    and then if you would like to enable it again:



    sudo update-rc.d apache2 enable


    depending on the project i am working on, it is handy to have the service conveniently available, if i wish to re-enable it.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Dec 10 '14 at 18:47









    tomodachi

    9,38742240




    9,38742240










    answered Oct 8 '13 at 0:08









    gsullinsgsullins

    2,009173




    2,009173







    • 4





      enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

      – here
      Jan 13 '14 at 3:58






    • 2





      @here sudo update-rc.d apache2 enable played as expected for me

      – Georgios Pligoropoulos
      Feb 9 '14 at 15:12











    • On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

      – Tanner
      Jun 10 '14 at 0:31






    • 1





      Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

      – Daniel Kmak
      Dec 14 '14 at 11:05











    • Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

      – TomDogg
      Apr 29 '15 at 9:33












    • 4





      enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

      – here
      Jan 13 '14 at 3:58






    • 2





      @here sudo update-rc.d apache2 enable played as expected for me

      – Georgios Pligoropoulos
      Feb 9 '14 at 15:12











    • On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

      – Tanner
      Jun 10 '14 at 0:31






    • 1





      Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

      – Daniel Kmak
      Dec 14 '14 at 11:05











    • Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

      – TomDogg
      Apr 29 '15 at 9:33







    4




    4





    enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

    – here
    Jan 13 '14 at 3:58





    enable gave me an error like runlevel arguments (none) do not match LSB Default-Start values, but sudo update-rc.d apache2 defaults appears to have re-enabled it successfully.

    – here
    Jan 13 '14 at 3:58




    2




    2





    @here sudo update-rc.d apache2 enable played as expected for me

    – Georgios Pligoropoulos
    Feb 9 '14 at 15:12





    @here sudo update-rc.d apache2 enable played as expected for me

    – Georgios Pligoropoulos
    Feb 9 '14 at 15:12













    On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

    – Tanner
    Jun 10 '14 at 0:31





    On Ubuntu Trusty it tells me "The disable|enable API is not stable and might change in the future."

    – Tanner
    Jun 10 '14 at 0:31




    1




    1





    Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

    – Daniel Kmak
    Dec 14 '14 at 11:05





    Doesn't work - error: no runlevel symlinks to modify, aborting!. However, apache2 is running and autostarts.

    – Daniel Kmak
    Dec 14 '14 at 11:05













    Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

    – TomDogg
    Apr 29 '15 at 9:33





    Doesn't work anymore: update-rc.d: error: no runlevel symlinks to modify, aborting!

    – TomDogg
    Apr 29 '15 at 9:33











    47














    With systemd we can now use systemctl commands to prevent a service from automatically starting at boot.



    here is an example:



    sudo systemctl disable apache2


    You will still be able to start and stop the service but it won't start up at boot.






    share|improve this answer


















    • 2





      Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

      – twan163
      Dec 6 '15 at 23:01






    • 1





      @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

      – mchid
      Dec 8 '15 at 21:55






    • 1





      this worked great on Debian

      – Anupam
      Jul 19 '17 at 12:37






    • 1





      the right answer for debian 9+

      – John
      Nov 24 '17 at 5:12






    • 1





      If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

      – Amil Waduwawara
      Aug 11 '18 at 2:26















    47














    With systemd we can now use systemctl commands to prevent a service from automatically starting at boot.



    here is an example:



    sudo systemctl disable apache2


    You will still be able to start and stop the service but it won't start up at boot.






    share|improve this answer


















    • 2





      Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

      – twan163
      Dec 6 '15 at 23:01






    • 1





      @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

      – mchid
      Dec 8 '15 at 21:55






    • 1





      this worked great on Debian

      – Anupam
      Jul 19 '17 at 12:37






    • 1





      the right answer for debian 9+

      – John
      Nov 24 '17 at 5:12






    • 1





      If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

      – Amil Waduwawara
      Aug 11 '18 at 2:26













    47












    47








    47







    With systemd we can now use systemctl commands to prevent a service from automatically starting at boot.



    here is an example:



    sudo systemctl disable apache2


    You will still be able to start and stop the service but it won't start up at boot.






    share|improve this answer













    With systemd we can now use systemctl commands to prevent a service from automatically starting at boot.



    here is an example:



    sudo systemctl disable apache2


    You will still be able to start and stop the service but it won't start up at boot.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Sep 18 '15 at 22:20









    mchidmchid

    23.4k25286




    23.4k25286







    • 2





      Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

      – twan163
      Dec 6 '15 at 23:01






    • 1





      @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

      – mchid
      Dec 8 '15 at 21:55






    • 1





      this worked great on Debian

      – Anupam
      Jul 19 '17 at 12:37






    • 1





      the right answer for debian 9+

      – John
      Nov 24 '17 at 5:12






    • 1





      If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

      – Amil Waduwawara
      Aug 11 '18 at 2:26












    • 2





      Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

      – twan163
      Dec 6 '15 at 23:01






    • 1





      @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

      – mchid
      Dec 8 '15 at 21:55






    • 1





      this worked great on Debian

      – Anupam
      Jul 19 '17 at 12:37






    • 1





      the right answer for debian 9+

      – John
      Nov 24 '17 at 5:12






    • 1





      If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

      – Amil Waduwawara
      Aug 11 '18 at 2:26







    2




    2





    Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

    – twan163
    Dec 6 '15 at 23:01





    Linux Mint is still based on Ubuntu 14.04. Ubuntu starts using systemd from 15.04 on.

    – twan163
    Dec 6 '15 at 23:01




    1




    1





    @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

    – mchid
    Dec 8 '15 at 21:55





    @dragonmnl as twan163 said, systemd is for the newer versions (debian jessie or equivalent +)

    – mchid
    Dec 8 '15 at 21:55




    1




    1





    this worked great on Debian

    – Anupam
    Jul 19 '17 at 12:37





    this worked great on Debian

    – Anupam
    Jul 19 '17 at 12:37




    1




    1





    the right answer for debian 9+

    – John
    Nov 24 '17 at 5:12





    the right answer for debian 9+

    – John
    Nov 24 '17 at 5:12




    1




    1





    If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

    – Amil Waduwawara
    Aug 11 '18 at 2:26





    If encounter update-rc.d: error: no runlevel symlinks to modify, aborting!, recreate any below missing simlinks; then retry: /etc/rc0.d/K01<service> /etc/rc1.d/K01<service> /etc/rc2.d/S99<service> /etc/rc3.d/S99<service> /etc/rc4.d/S99<service> /etc/rc5.d/S99<service> /etc/rc6.d/K01<service>

    – Amil Waduwawara
    Aug 11 '18 at 2:26











    3














    Thought I'd just add to the answers by @gsullins and @tomodachi, for future readers who used the accepted answer.



    If you've already used:



    sudo update-rc.d apache2 remove


    You can use the argument defaults to add apache2 back into the autostart



    sudo update-rc.d apache2 defaults


    Then you're able to enable/disable



    sudo update-rc.d apache2 disable
    sudo update-rc.d apache2 enable





    share|improve this answer



























      3














      Thought I'd just add to the answers by @gsullins and @tomodachi, for future readers who used the accepted answer.



      If you've already used:



      sudo update-rc.d apache2 remove


      You can use the argument defaults to add apache2 back into the autostart



      sudo update-rc.d apache2 defaults


      Then you're able to enable/disable



      sudo update-rc.d apache2 disable
      sudo update-rc.d apache2 enable





      share|improve this answer

























        3












        3








        3







        Thought I'd just add to the answers by @gsullins and @tomodachi, for future readers who used the accepted answer.



        If you've already used:



        sudo update-rc.d apache2 remove


        You can use the argument defaults to add apache2 back into the autostart



        sudo update-rc.d apache2 defaults


        Then you're able to enable/disable



        sudo update-rc.d apache2 disable
        sudo update-rc.d apache2 enable





        share|improve this answer













        Thought I'd just add to the answers by @gsullins and @tomodachi, for future readers who used the accepted answer.



        If you've already used:



        sudo update-rc.d apache2 remove


        You can use the argument defaults to add apache2 back into the autostart



        sudo update-rc.d apache2 defaults


        Then you're able to enable/disable



        sudo update-rc.d apache2 disable
        sudo update-rc.d apache2 enable






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 1 '17 at 0:10









        Ben WindingBen Winding

        35329




        35329















            protected by Byte Commander Mar 3 '16 at 12:27



            Thank you for your interest in this question.
            Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).



            Would you like to answer one of these unanswered questions instead?



            Popular posts from this blog

            Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

            Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

            Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»