main/lsyncd: rewrite initd to add support for command_args

(cherry picked from commit 9c138165d75022d1f3fafb35b927e9e394a9c6df)