From patchwork Fri Dec 29 10:10:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honggang LI X-Patchwork-Id: 10136967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CB4576037D for ; Fri, 29 Dec 2017 10:10:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B42B82BA93 for ; Fri, 29 Dec 2017 10:10:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8DB22DEE8; Fri, 29 Dec 2017 10:10:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B05872BA93 for ; Fri, 29 Dec 2017 10:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752234AbdL2KKQ (ORCPT ); Fri, 29 Dec 2017 05:10:16 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42716 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754888AbdL2KKP (ORCPT ); Fri, 29 Dec 2017 05:10:15 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A62C881E01; Fri, 29 Dec 2017 10:10:15 +0000 (UTC) Received: from dhcp-13-42.nay.redhat.com (unknown [10.66.128.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 576415D6A5; Fri, 29 Dec 2017 10:10:14 +0000 (UTC) From: Honggang LI To: linux-rdma@vger.kernel.org Cc: bart.vanassche@sandisk.com, honli@redhat.com Subject: [rdma-core patch] srp_daemon: srp_daemon.service should be started after network.target Date: Fri, 29 Dec 2017 18:10:06 +0800 Message-Id: <20171229101006.27861-1-honli@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 29 Dec 2017 10:10:15 +0000 (UTC) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Honggang Li The srp_daemon service will be started at the very beginning state of systemd when boot/reboot the machine, in case srp_daemon.service is not after network.target. As result, the srp_daemon.service will be terminated because of SERVICE_FAILURE_RESOURCES. Fixes: 1c7fe513e3e9 ("srp_daemon: One systemd service per port") Signed-off-by: Honggang Li --- srp_daemon/srp_daemon.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/srp_daemon/srp_daemon.service.in b/srp_daemon/srp_daemon.service.in index 188b7e1a..93e44425 100644 --- a/srp_daemon/srp_daemon.service.in +++ b/srp_daemon/srp_daemon.service.in @@ -3,6 +3,7 @@ Description=Daemon that discovers and logs in to SRP target systems Documentation=man:srp_daemon file:/etc/srp_daemon.conf DefaultDependencies=false Conflicts=emergency.target emergency.service +After=network.target Before=remote-fs-pre.target [Service]