initscript for domain mode