On 06/24/2018 04:38 PM, Ed Greshko wrote:
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.
Well, this is interesting:
# systemctl -l start rc-local
# echo $?
0
#
# systemctl -l status rc-local.service
rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; enabled)
Active: active (exited) (Result: exit-code) since Sun 2018-06-24
22:49:49 Boise; 32s ago
Process: 17623 ExecStart=/etc/rc.d/rc.local start (code=exited,
status=0/SUCCESS)
Main PID: 17637 (code=exited, status=1/FAILURE)
Jun 24 22:49:49 localhost.localdomain systemd[1]: Started
/etc/rc.d/rc.local Compatibility.
Jun 24 22:49:50 localhost.localdomain systemd[1]: rc-local.service: main
process exited, code=exited, status=1/FAILURE
So, is there a way to get more detailed info on what caused the failure??
Thanx!
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/SZLLVEJJDPC2V3H2IEWXRBTM37FNQSPW/
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/MZZWPBC2MFYJBGMIOJLZWJKAH7OBHPKL/