lightweight syntax checker

Issue #426 closed
Jiguang created an issue

monit binary already has the ability to do syntax checking for config files. But it is not flexible that the check needs a server with monit installed.

In our automated deployment process, the config files wont't get checked before deployed to servers, and sometimes the config files may be broken. If we can do the syntax check during build phase, it will reduce many trouble.

So is it possible to compile a lightweight executable that merely do the syntax check.

Comments (1)

  1. Tildeslash repo owner

    Sorry, i don't see any advantage between installing a single-purpose binary for syntax check vs. installing monit on the machine where you test syntax before deployment ... you don't need to run monit on it, just use the -t option to test syntax (-c option can be used to specify configuration file path).

  2. Log in to comment