Skip to content

Instantly share code, notes, and snippets.

@Kitsunetic
Created October 2, 2020 11:12
Show Gist options
  • Save Kitsunetic/df7d34d9e789b1ca18e630a1e0a824cd to your computer and use it in GitHub Desktop.
Save Kitsunetic/df7d34d9e789b1ca18e630a1e0a824cd to your computer and use it in GitHub Desktop.

Revisions

  1. Kitsunetic created this gist Oct 2, 2020.
    24 changes: 24 additions & 0 deletions activate rc.local on 18.04.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    Edit */etc/rc.local*

    ```
    sudo chmod +x /etc/rc.local
    ```

    Update */lib/systemd/system/rc-local.service*
    ```
    [Service]
    Type=forking
    ExecStart=/etc/rc.local start
    TimeoutSec=0
    RemainAfterExit=yes
    GuessMainPID=no
    [Install]
    WantedBy=multi-user.target
    ```

    Enable service
    ```
    sudo systemctl start rc-local
    sudo systemctl status rc-local
    ```