s4-ldb: added ldb command line hook support