[ubuntu] Problems launching Startup scripts – Ubuntu 18.04.1 LTS
 

[ubuntu] Problems launching Startup scripts – Ubuntu 18.04.1 LTS

 
I have been reviewing different How To articles on using /etc/rc.local as well as the systemd compatible rc-local.service. Neither of these are currently providing the service I am hoping for on startup.

The /etc/rc.local file is a 9 line script. It appears to launch half of the scripts within the file, but does not complete them. What could interrupt it? (The /etc/rc.local file excutes flawlessly from the command line, and completes execution.)

The systemd rc-local.service reports the following:

● rc-local.service – /etc/rc.local Compatibility
Loaded: loaded (/etc/systemd/system/rc-local.service; enabled-runtime; vendor preset: enabled)
Drop-In: /lib/systemd/system/rc-local.service.d
└─debian.conf
Active: active (exited) since Mon 2020-11-30 16:56:00 EST; 33min ago
Docs: man:systemd-rc-local-generator(8)
Process: 2774 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)

Nov 30 16:55:59 itssafe-NUC7i5DNHE root[4976]: IPSet: es wget failed.
Nov 30 16:55:59 itssafe-NUC7i5DNHE root[4982]: IPSet: at wget failed.
Nov 30 16:55:59 itssafe-NUC7i5DNHE root[4994]: IPSet: lt wget failed.

The Three lines indicate that wget cannot retrieve remote file from the network. I am using the following configuration:

# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.

# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit] Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local

[Service] Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no

[Install] WantedBy=multi-user.target

Neither the /etc/rc.local or rc-local.service execute completely (or as in the case for the service,after the network is running).

How do I resolve this problem, and get the startup script to execute as it does after the workspace is available?

 

Previous How to Learn Linux Kernel Development - Books and FREE Online Course
Next Velocidad de internet capada?
 

About author

You might also like

Ubuntu Dsicussions 0 Comments

[SOLVED] nautilus-admin

i’m using ubuntu and a want to open some folder as administrator to paste some files, but after i installed nautilus-admin Code: sudo apt install nautilus-admin like it is described

Ubuntu Dsicussions 0 Comments

Mutiboot fresh install – Ubuntu "live" then "grub "?

This a “caution question”, I do not want to screw things up- again. FOR TEST purposes – I have successfully used “live USB” and installed FULL version of 16.04 using

Ubuntu Dsicussions 0 Comments

Less than 6 months to Ubuntu 16.04 ESM: 6 things to prepare

Ubuntu 16.04 LTS Xenial Xerus will enter the extended security maintenance (ESM) period in April 2021. This article explains the ESM period and provides a guide for six key considerations

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply