ForgeCraft-Script icon indicating copy to clipboard operation
ForgeCraft-Script copied to clipboard

Adds return values to the startup function

Open XCompWiz opened this issue 10 years ago • 1 comments

The start function used to have return values to indicate success, which is used further down to control the start up of the monitor. Presently, I don't think that the monitor is started due to these returns being missing.

XCompWiz avatar Dec 05 '14 10:12 XCompWiz

The monitor is not starting because the -z check in mc_startmonitor is incorrect. It should be -n.

-z checks if the length of the given string is zero, thus meaning that if $CHECKSERVER is not defined, the monitor will start. -n checks if the length of the given string is non-zero, which is what it should be.

jeffreykog avatar Feb 28 '15 09:02 jeffreykog