On 06/25/18 06:53, JD wrote:
Well, this is interesting:
# systemctl -l start rc-local
# echo $?
0
Which means the "systemctl" command succeeded.
#
# 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
Which means the script failed.
So, is there a way to get more detailed info on what caused the failure??
I don't recall how I found my mistake. I do remember putting in a few
"touch"
commands in the script to create files and thereby narrow down where in the script
I'd gone wrong.
--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.