Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Created June 8, 2015 09:09
Show Gist options
  • Select an option

  • Save nicolasramy/a7fd45be6b394049bc51 to your computer and use it in GitHub Desktop.

Select an option

Save nicolasramy/a7fd45be6b394049bc51 to your computer and use it in GitHub Desktop.

Revisions

  1. nicolasramy created this gist Jun 8, 2015.
    14 changes: 14 additions & 0 deletions services.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    As Apache still uses the traditional SysV init scripts you can use
    ```
    sudo update-rc.d -f apache2 remove
    ```

    to remove the links from ```/etc/rcX.d``` or, alternatively use
    ```
    sudo update-rc.d apache2 disable
    ```

    which "disables" the script by changing it from a start script to a stop script. This is reversible by
    ```
    sudo update-rc.d apache2 enable
    ```