daemon refactor run fn and stop timeout, update systemd conf