transfer daemon/lock/signal to golib pkg