Reboot is sometimes the best chance to cleanup some weird things.
I did not lookup all the script, but it seems that an expected file is missing when running this script.
These is not an indicator for an error, my guess is, that this file is only created in special circumstances.
At my NAS this file also does not exist when doing regular operation:
Code: Select all
[/etc/init.d] # grep -i /var/lock/ Qthttpd.sh
LOCK_FILE="/var/lock/.apache.sh.lck"
In script code:
177 _lock_uptime=$(cat ${LOCK_FILE})
178 if [ $(( ${_uptime} - ${_lock_uptime})) -gt ${_timeout} ]; then
179 rm -rf ${LOCK_FILE}
180 continue
[/etc/init.d] # ls -al /var/lock/.ap*
-rw-r--r-- 1 admin administrators 5 2022-09-27 07:19 /var/lock/.apache_proxy.port
So it seems, that a missing /var/lock/.apache.sh.lck causes the error.
Finally it confirms to me, that you should not run this script during NAS operation.
If I remember correct, I did use a
to restart services, but this will affect access too!
You can check in services.sh which services are affected. But IMHO a restart is a better way to do that.
Regards