From patchwork Sun Jan 28 16:00:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Kulhavy X-Patchwork-Id: 866839 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zTy7R6Gdzz9sBd for ; Mon, 29 Jan 2018 03:01:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C6CAD88148; Sun, 28 Jan 2018 16:01:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V2O7FyjrNftj; Sun, 28 Jan 2018 16:01:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id E8FE188149; Sun, 28 Jan 2018 16:01:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AE45D1C0E79 for ; Sun, 28 Jan 2018 16:01:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AA2F7884BC for ; Sun, 28 Jan 2018 16:01:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IIkkVXuIXzzi for ; Sun, 28 Jan 2018 16:01:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from twin.jikos.cz (twin.jikos.cz [91.219.245.39]) by hemlock.osuosl.org (Postfix) with ESMTPS id BFCF7884C1 for ; Sun, 28 Jan 2018 16:01:29 +0000 (UTC) Received: from localhost.localdomain (240.90.254.84.ftth.as8758.net [84.254.90.240]) (authenticated bits=0) by twin.jikos.cz (8.13.6/8.13.6) with ESMTP id w0SG0hka029714; Sun, 28 Jan 2018 17:01:27 +0100 From: Petr Kulhavy To: buildroot@buildroot.org Date: Sun, 28 Jan 2018 17:00:20 +0100 Message-Id: <1517155221-19399-2-git-send-email-brain@jikos.cz> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517155221-19399-1-git-send-email-brain@jikos.cz> References: <1517155221-19399-1-git-send-email-brain@jikos.cz> Subject: [Buildroot] [PATCH 2/3] package: linuxptp: enhance systemd service X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petr Kulhavy MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" linuxptp now pulls in the time-sync.target phc2sys (linuxptp-system-clock.service) starts after ptp4l (linuxptp.service) Signed-off-by: Petr Kulhavy --- package/linuxptp/linuxptp-system-clock.service | 2 +- package/linuxptp/linuxptp.service | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/linuxptp/linuxptp-system-clock.service b/package/linuxptp/linuxptp-system-clock.service index 7327254..a4436a3 100644 --- a/package/linuxptp/linuxptp-system-clock.service +++ b/package/linuxptp/linuxptp-system-clock.service @@ -1,6 +1,6 @@ [Unit] Description=Precision Time Protocol system clock synchronization -After=syslog.target network.target +After=linuxptp.service [Service] ExecStart=/usr/sbin/phc2sys -s /dev/ptp0 -c CLOCK_REALTIME -w -S 1.0 diff --git a/package/linuxptp/linuxptp.service b/package/linuxptp/linuxptp.service index f690430..14e9814 100644 --- a/package/linuxptp/linuxptp.service +++ b/package/linuxptp/linuxptp.service @@ -1,6 +1,8 @@ [Unit] Description=Precision Time Protocol daemon After=syslog.target network.target +Before=time-sync.target +Wants=time-sync.target Wants=linuxptp-system-clock.service [Service]