I was ssh'd into my server, and witnessed the following. Why did it halt? cron.php which will execute every 5 seconds will write to a database, but doesn't do anything to cause the server to halt.
Code:
login as: Michael
Michael@10.120.11.10's password:
Last login: Fri Apr 28 06:16:32 2017 from 10.120.11.123
[Michael@devserver ~]$ ps aux | grep php
root 3980 0.1 0.1 354168 15660 ? S 06:55 0:00 /usr/bin/php /v ar/www/datalogger/server.php
Michael 4050 0.0 0.0 103332 852 pts/1 S+ 06:55 0:00 grep php
[Michael@devserver ~]$ cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/local/include/connect_wifi
/usr/local/bin/test_soap
exit 0
[Michael@devserver ~]$ cat /usr/local/bin/test_soap
# Initiate a given PHP file every 5 seconds.
while true
do
/usr/bin/php /var/www/soap_server/cron.php &
sleep 5
done
exit 0
[Michael@devserver ~]$ sudo /etc/init.d/test_soap start
[sudo] password for Michael:
# Initiate a given PHP file every 5 seconds.
while true
do
/usr/bin/php /var/www/soap_server/cron.php &
sleep 5
done
exit 0
Starting service…
Service started
[Michael@devserver www]$
Broadcast message from root@devserver.michaels.lan
(unknown) at 7:11 ...
The system is going down for halt NOW!
Then I went to the physical machine, and it was attempting to boot, but hung up on initiating the certmonger process. I turned off the machine and then turned it on, and witness the following (not per verbatim, and caps are my notes to you)
ON
Code:
ALL LOOKING GOOD
....
Mounting local filesystems. Mount point 0 does not exist. (AND SOME OTHER TEXT)
....
Unicorn failed (I THINK IT ALWAYS HAS FAILED)
Starting Cert Monger (HANGS INDEFINITELY)
OFF
Code:
ALL LOOKING GOOD
....
Unmounting file system
/home device is busy (AND SOME OTHER TEXT)
....
TURNS OFF
Any thoughts why it happened, and how to fix it?