Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

14
  • If /etc/rc.local exists and is executable, systemd automatically creates and enables a unit for running it. Would the script running twice in parallel because of your extra unit cause problems?
    – muru
    Commented Jul 4 at 1:35
  • This web page is not letting me post the 3000-odd line script. Commented Jul 4 at 2:07
  • 1
    We don't want to see a 3000-line script either. Reduce your rc.local to a minimal part which reproduces the behaviour (writes to log file every time, but doesn't run some other specific action at boot)
    – muru
    Commented Jul 4 at 2:20
  • 1
    There is no Ubuntu 20.03. If you're talking about 20.04, systemd-rc-local-generator is indeed present and installed by default. Please edit your question and use code blocks to add code.
    – muru
    Commented Jul 4 at 2:49
  • 1
    1. Edit your question: askubuntu.com/posts/1519502/edit to see how I added code formatting. 2. See: askubuntu.com/editing-help#code
    – muru
    Commented Jul 4 at 3:00