On 06/25/18 05:43, Patrick O'Callaghan wrote:
On Sun, 2018-06-24 at 11:25 -0700, Joe Zeff wrote:
> On 06/24/2018 10:55 AM, JD wrote:
>> On 06/24/2018 11:37 AM, Joe Zeff wrote:
>>> On 06/24/2018 10:27 AM, JD wrote:
>>>> But I do not want to do this loop every time I boot up.
>>>> I want to have set once and for all!!!
>>> There's probably a proper way to do that, but until somebody finds it,
>>> put that into a shell script and call it from rc.local.
>> So far, the ways I have found on google search have not survived
>> a reboot :(
> That's why you use rc.local. It's a shell script called at the end of
> boot that you can use for any special or non-standard stuff you want or
> need done.
Note that you now have to explicitly enable rc.local to make it run at
boot time:
# systemctl enable rc-local.service
Who told you that? It is a "static" service and need not be enabled.
Before creation of an executable /etc/rc.d/rc.local file
[egreshko@f28k-b1 ~]$ systemctl status rc-local.service
● rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static; vendor preset:
disabled)
Active: inactive (dead)
Docs: man:systemd-rc-local-generator(8)
After creation and rebooting without enabling.
● rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; enabled-runtime; vendor
preset: disabled)
Active: active (exited) since Mon 2018-06-25 06:32:27 CST; 1min 30s ago
Docs: man:systemd-rc-local-generator(8)
Process: 652 ExecStart=/etc/rc.d/rc.local start (code=exited, status=0/SUCCESS)
Jun 25 06:32:27
f28k-b1.greshko.com systemd[1]: Starting /etc/rc.d/rc.local
Compatibility...
Jun 25 06:32:27
f28k-b1.greshko.com systemd[1]: Started /etc/rc.d/rc.local Compatibility.
--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.