Add systemd unit
Fix checking for error in systemd_get_socket