From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jyzwJ-00073h-8n for ptxdist@pengutronix.de; Fri, 24 Jul 2020 17:48:51 +0200 Received: by mail-wm1-x334.google.com with SMTP id j18so8354659wmi.3 for ; Fri, 24 Jul 2020 08:48:51 -0700 (PDT) From: Bruno Thomsen Date: Fri, 24 Jul 2020 17:48:40 +0200 Message-Id: <20200724154843.5552-3-bruno.thomsen@gmail.com> In-Reply-To: <20200724154843.5552-1-bruno.thomsen@gmail.com> References: <20200724154843.5552-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 3/6] chrony: systemd unit option List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bruno Thomsen , bth@kamstrup.com Signed-off-by: Bruno Thomsen --- rules/chrony.in | 7 +++++++ rules/chrony.make | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/rules/chrony.in b/rules/chrony.in index 9eac48971..525be2681 100644 --- a/rules/chrony.in +++ b/rules/chrony.in @@ -95,6 +95,13 @@ endif config CHRONY_STARTSCRIPT bool default y + depends on INITMETHOD_BBINIT prompt "install /etc/init.d/chrony" +config CHRONY_SYSTEMD_UNIT + bool + default y + depends on INITMETHOD_SYSTEMD + prompt "install systemd unit files" + endif diff --git a/rules/chrony.make b/rules/chrony.make index 3f90a00b1..a72752030 100644 --- a/rules/chrony.make +++ b/rules/chrony.make @@ -106,6 +106,14 @@ ifneq ($(call remove_quotes, $(PTXCONF_CHRONY_BBINIT_LINK)),) endif endif endif + +ifdef PTXCONF_CHRONY_SYSTEMD_UNIT + @$(call install_alternative, chrony, 0, 0, 0644, \ + $(CHRONY_DIR)/examples/chronyd.service, /usr/lib/systemd/system/chronyd.service) + @$(call install_link, chrony, ../chronyd.service, \ + /usr/lib/systemd/system/multi-user.target.wants/chronyd.service) +endif + @$(call install_finish, chrony) @$(call touch) -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de