Running Mageia 7 with latest kernel and Xfce desktop.
There was talk about overcoming the recent Cups problem by adding a
command to rc.local. I decided to use the same method to keep my
customized /etc/default/grub file.
Commands in rc.local are run during
bootup, after all the numbered "rc" files.
rc.local used to be an empty entry in the rc.d series, but recently,
some distros (including Mageia) have omitted it entirely, so I added
one. It turned out not to be that easy.
First off, I treated rc.local as a FILE,
while all the other items are FOLDERS.
That may be one reason why it didn't work, but there is always
the statement "Be sure to make rc.local executable."
Anyway, I simply
deleted rc.local, assuming that it would put me back as before, but that
made the bootup hang.
Shorewall and the display manager couldn't start,
and that was only the beginning.
Apparently what I went back to, wasn't
what I had before.
Here is what I discovered.
There is a systemd service, rc-local. On a default installation it can
be queried, but initially, it has no .service files and can't run.
There
is a good tutorial on what the service does, and how to create those
.service files at
I haven't tried it. I don't need my new command every time, only for a
new kernel.
I will keep the command as an executable file I can run
when required. I fixed my system with my usual first try, running the
Mageia installer with the "update" option.
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:
There is a systemd service, rc-local. On a default installation it can
be queried, but initially, it has no .service files and can't run.
Not my experience. I see the service file, but as you have found out
there is no /etc/rc.d/rc.local file which you would have to create,
set executable, test, then run systemctl enable rc-local.service
There is a good tutorial on what the service does, and how to create
those .service files at
https://www.linux-babe.com/linux-server/how-to-enable-etc-rc-local- with-systemd.
I can not resolve the site let alone the link.
Running Mageia 7 with latest kernel and Xfce desktop.
There was talk about overcoming the recent Cups problem by adding a
command to rc.local. I decided to use the same method to keep my
customized /etc/default/grub file. Commands in rc.local are run during bootup, after all the numbered "rc" files.
rc.local used to be an empty entry in the rc.d series, but recently,
some distros (including Mageia) have omitted it entirely, so I added
one. It turned out not to be that easy.
First off, I treated rc.local as a FILE, while all the other items are
FOLDERS. That may be one reason why it didn't work, but there is always
the statement "Be sure to make rc.local executable." Anyway, I simply deleted rc.local, assuming that it would put me back as before, but that made the bootup hang. Shorewall and the display manager couldn't start,
and that was only the beginning. Apparently what I went back to, wasn't what I had before.
Here is what I discovered.
There is a systemd service, rc-local. On a default installation it can
be queried, but initially, it has no .service files and can't run. There
is a good tutorial on what the service does, and how to create those .service files at
I haven't tried it. I don't need my new command every time, only for a
new kernel. I will keep the command as an executable file I can run
when required. I fixed my system with my usual first try, running the Mageia installer with the "update" option.
Doug.
On Mon, 04 Nov 2019 04:52:05 -0600, Bit Twister wrote:
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:with-systemd.
https://www.linux-babe.com/linux-server/how-to-enable-etc-rc-local-
I can not resolve the site let alone the link.
There is a typo in the server name. Search for how-to-enable-etc-rc-local-with-systemd and you will find it.
The tutorial mentions an alternative of using a @reboot line in crontab.
I can find no documentation on my system man pages for such a line.
Is it an Ubuntu/Kubuntu thing?
On Mon, 04 Nov 2019 04:52:05 -0600, Bit Twister wrote:
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:
with-systemd.There is a systemd service, rc-local. On a default installation it can
be queried, but initially, it has no .service files and can't run.
Not my experience. I see the service file, but as you have found out
there is no /etc/rc.d/rc.local file which you would have to create,
set executable, test, then run systemctl enable rc-local.service
There is a good tutorial on what the service does, and how to create
those .service files at
https://www.linux-babe.com/linux-server/how-to-enable-etc-rc-local-
I can not resolve the site let alone the link.
There is a typo in the server name. Search for how-to-enable-etc-rc-local-with-systemd and you will find it.
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:
Running Mageia 7 with latest kernel and Xfce desktop.
There was talk about overcoming the recent Cups problem by adding a
command to rc.local. I decided to use the same method to keep my
customized /etc/default/grub file.
I do not understand that relation between /etc/default/grub and rc.local
Commands in rc.local are run during
bootup, after all the numbered "rc" files.
rc.local used to be an empty entry in the rc.d series, but recently,
some distros (including Mageia) have omitted it entirely, so I added
one. It turned out not to be that easy.
Hmmm, it is pretty easy.
First off, I treated rc.local as a FILE,
Which it should be.
while all the other items are FOLDERS.
Very true, those rc scripts are kept in folders, or have links in
the folders to scripts.
That may be one reason why it didn't work, but there is always
the statement "Be sure to make rc.local executable."
That is a good basic rule used to make it easy for the shell to run them
as coded.
Anyway, I simply
deleted rc.local, assuming that it would put me back as before, but that
made the bootup hang.
Now that is odd. You do an install, there is no /etc/rc.d/rc.local and
the system boots. You create one then delete it and now system does not
boot. Not sure how that happens. At worst it should have been logged
in the journal and the system would continue without it.
Shorewall and the display manager couldn't start,
and that was only the beginning.
Intriguing that shorewall did not start since the rc.local has
After=network.target
which means rc.local will not start executing till after the network is up.
Apparently what I went back to, wasn't
what I had before.
Still not following logically speaking. You install/boot, create rc.local don't like it, deleted it, and now system does not boot correctly.
Here is what I discovered.
There is a systemd service, rc-local. On a default installation it can
be queried, but initially, it has no .service files and can't run.
Not my experience. I see the service file, but as you have found out
there is no /etc/rc.d/rc.local file which you would have to create,
set executable, test, then run systemctl enable rc-local.service
There
is a good tutorial on what the service does, and how to create those
.service files at
https://www.linux-babe.com/linux-server/how-to-enable-etc-rc-local-with-systemd
I can not resolve the site let alone the link.
I haven't tried it. I don't need my new command every time, only for a
new kernel.
Hmmmm, guessing now the conversion is really about your script modify /etc/default/grub
I suggest that you show us your modification(s). I would guess a new one
line entry would make all this extra work go away.
I will keep the command as an executable file I can run
when required. I fixed my system with my usual first try, running the
Mageia installer with the "update" option.
Can only guess /etc/default/grub fixed, or update had a new kernel with caused a new grub.cfg to be generated.
On Mon, 04 Nov 2019 04:52:05 -0600, Bit Twister wrote:
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:
with-systemd.There is a systemd service, rc-local. On a default installation it can
be queried, but initially, it has no .service files and can't run.
Not my experience. I see the service file, but as you have found out
there is no /etc/rc.d/rc.local file which you would have to create,
set executable, test, then run systemctl enable rc-local.service
There is a good tutorial on what the service does, and how to create
those .service files at
https://www.linux-babe.com/linux-server/how-to-enable-etc-rc-local-
I can not resolve the site let alone the link.
There is a typo in the server name. Search for how-to-enable-etc-rc-local-with-systemd and you will find it.
The tutorial mentions an alternative of using a @reboot line in crontab.
I can find no documentation on my system man pages for such a line. Is
it an Ubuntu/Kubuntu thing?
Cheers!
jim b.
The tutorial mentions an alternative of using a @reboot line in crontab.
I can find no documentation on my system man pages for such a line. Is
it an Ubuntu/Kubuntu thing?
On 4/11/19 9:52 pm, Bit Twister wrote:....
No, the system hung when it couldn't start the rc-local service. The command in the journal had no timeout, i.e. it would stay at that point forever.
Now that is odd. You do an install, there is no /etc/rc.d/rc.local and
the system boots. You create one then delete it and now system does not
boot. Not sure how that happens. At worst it should have been logged
in the journal and the system would continue without it.
There
is a good tutorial on what the service does, and how to create those
.service files at
Hmmmm, guessing now the conversion is really about your script modify
/etc/default/grub
Don't guess what it is about. I tried to keep out all peripheral information.
On 5/11/19 2:11 am, Jim Beard wrote:
On Mon, 04 Nov 2019 04:52:05 -0600, Bit Twister wrote:The site is a new one to me. It is not meant to be distro specific. See
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:with-systemd.
There is a systemd service, rc-local. On a default installation it can >>>> be queried, but initially, it has no .service files and can't run.
Not my experience. I see the service file, but as you have found out
there is no /etc/rc.d/rc.local file which you would have to create,
set executable, test, then run systemctl enable rc-local.service
There is a good tutorial on what the service does, and how to create
those .service files at
https://www.linux-babe.com/linux-server/how-to-enable-etc-rc-local-
I can not resolve the site let alone the link.
There is a typo in the server name. Search for
how-to-enable-etc-rc-local-with-systemd and you will find it.
The tutorial mentions an alternative of using a @reboot line in crontab.
I can find no documentation on my system man pages for such a line. Is
it an Ubuntu/Kubuntu thing?
Cheers!
jim b.
That user had CentOS.
Some believe Redhat is the only good distrution and everyone else
deseres to be punished.
On 4/11/19 9:52 pm, Bit Twister wrote:
On Mon, 4 Nov 2019 20:22:32 +1100, Doug Laidlaw wrote:Keep reading. I find the "corner" problem with Grub2 an ongoing
Running Mageia 7 with latest kernel and Xfce desktop.
There was talk about overcoming the recent Cups problem by adding a
command to rc.local. I decided to use the same method to keep my
customized /etc/default/grub file.
I do not understand that relation between /etc/default/grub and rc.local
nuisance. I have /etc/default/grub configured to make my box boot into Mageia by default, then the next kernel upgrade restores it to "saved."
No, the system hung when it couldn't start the rc-local service. The
command in the journal had no timeout, i.e. it would stay at that point forever.
I think that you mean that shorewall's .service file has that line.Shorewall and the display manager couldn't start,
and that was only the beginning.
Intriguing that shorewall did not start since the rc.local has
After=network.target
which means rc.local will not start executing till after the network is up. >>
On Mon, 04 Nov 2019 10:11:31 -0500, Jim Beard <jim.beard@verizon.net>
wrote:
The tutorial mentions an alternative of using a @reboot line in
crontab.
I can find no documentation on my system man pages for such a line. Is
it an Ubuntu/Kubuntu thing?
No. See "man 5 crontab".
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 368 |
Nodes: | 16 (2 / 14) |
Uptime: | 84:15:18 |
Calls: | 7,895 |
Calls today: | 1 |
Files: | 12,968 |
Messages: | 5,791,779 |