Setup service register in shared lib.