On running the command<br />
service named configtest<br />
after introducing an deliberate error in the configuration the check returned success (0), when the command should return an error (1 in function checkconfig). On investigation it was discovered that the return value of checkconfig() isn't used anywhere after the function call.<br />
<br />
Possible solution attached.
↧