From nobody Mon May 6 18:47:31 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) client-ip=205.139.110.61; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=ixsystems.com ARC-Seal: i=1; a=rsa-sha256; t=1582347744; cv=none; d=zohomail.com; s=zohoarc; b=Iuj1tLwD8tYltJ+vN1XX4ck2Z6IhnHaRVy5jb4Rbg8U9yor9YIeBEvDyKvVCeEDMwQRJrVGCb0eQ4ma00cypuidAAGAHPhvPLAju30kKcX15ndBbgM29LIWV1uOuf+bZqgCzEML9OPs72xSZBdWjtJxrj4bdJs73MmQvt13t9yM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582347744; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=XKt9p1xEQe0A7rAmkAnBzNOV9w6/HTzZjNadU3piFwo=; b=CYIkQuXVdMeXYNTvRq0+IEvy6vbUzqaQlNNrcBxHtrw+1PcK/i4xr4A6wsRBE9ntSuH2OjIUa0pZ2UJvc9f1lXxuvMfuKp6/oHJhgjCE7KxbQEhXgSKXw4IgnSqmI7hk+uiB2WxqsiaI9CMg3lMRafxg42eC1qNS2ku7BEPSv+w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.61 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) by mx.zohomail.com with SMTPS id 1582347743776968.0723444166525; Fri, 21 Feb 2020 21:02:23 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-52-Pdw0aQrfO5aJym_gCRr1gQ-1; Sat, 22 Feb 2020 00:02:19 -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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id CB836185734D; Sat, 22 Feb 2020 05:02:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 950AD77945; Sat, 22 Feb 2020 05:02:10 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 23F231809563; Sat, 22 Feb 2020 05:02:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 01M521vH015781 for ; Sat, 22 Feb 2020 00:02:01 -0500 Received: by smtp.corp.redhat.com (Postfix) id A3C6F10A50FF; Sat, 22 Feb 2020 05:02:01 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast05.extmail.prod.ext.rdu2.redhat.com [10.11.55.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E4A5106A72B for ; Sat, 22 Feb 2020 05:01:59 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9311B800294 for ; Sat, 22 Feb 2020 05:01:59 +0000 (UTC) Received: from mail-yw1-f68.google.com (mail-yw1-f68.google.com [209.85.161.68]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-208-z3qlIsNxMWyhJx0dBtuWeA-1; Sat, 22 Feb 2020 00:01:56 -0500 Received: by mail-yw1-f68.google.com with SMTP id t141so2471778ywc.11 for ; Fri, 21 Feb 2020 21:01:56 -0800 (PST) Received: from xeon-freebsd.freqlabs.com. (69-228-200-148.lightspeed.knvltn.sbcglobal.net. [69.228.200.148]) by smtp.gmail.com with ESMTPSA id h139sm2269193ywa.35.2020.02.21.21.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2020 21:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582347742; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=XKt9p1xEQe0A7rAmkAnBzNOV9w6/HTzZjNadU3piFwo=; b=ciPt3dq8tV6eyDrXwjSYOngwBpQWOS2fEc3qPf7yq7JUwh2ulf7Ezo/WG14pPLZtIAptcw ZXRoHNjKvsVStOiwmedULAoXLYtgAgQzGLrzgr3g26u5lIco0UotnmSmrLs5zM++MENcXb jSUBT8Bbwc2UKpwxGy6selpJwIpJKvM= X-MC-Unique: Pdw0aQrfO5aJym_gCRr1gQ-1 X-MC-Unique: z3qlIsNxMWyhJx0dBtuWeA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=h0wzNGiWBpZrhQC0cVM1S3fOvl0FzFAnCNDhOvM+3q8=; b=Q3SZUqzwSQ8TplceOHrVv9/4oyX3JYArdypMJ5k1pRcFaMPMGvQGm+9ekDnqdxKExk POz/yzrw1KIKoVahwjiNCS4x4saqlkdlnpXWA0LPymNTX+TT1v6DMZsnz8Q/3cy1uckU RefHhpFgDIl95oh2F/TL7Sb3YFOzA94sgNzN0BjLzf6cTOFK7H30BsgwuxqppUimoevB peb33wqn97CFnR9ik5A8mXhwEI+FU14pkXy+9IWOIp5EfqUxjAKzjSly2CAUyNjKZ/3O AlbeeNPnamt1Lr+pkOLDFIPsXUh/SPcfJKJEd0pcuuEe5BD1FYqf8tG9ROnQw5M6Wf91 5tMg== X-Gm-Message-State: APjAAAWlm1vOSoIL9go9+gvvFfKob742NfGtpOpoQhjqiQKjcVAo1e4P S9HXnSK2qg71dJY4xD8gH3Pln2w2ZZ14MpMq3Ju4yx4xxq9Gb9GqkTqpNmrnwNryYIu39LrI1q5 pMyQDBr8OL0d7At545HVYZ4AN6WQh52STvZR7d3z5Hvx1RhKY5KzvqPBYM32lUHjV2Kw= X-Google-Smtp-Source: APXvYqxdZOfq63sMsx1GwqIzl/LFiDuwGp+ZRIj0ZeWxuj1yNCL8HBRNzWrXwcVBs4zCa2Dgms4tsg== X-Received: by 2002:a25:20d5:: with SMTP id g204mr13847852ybg.45.1582347716019; Fri, 21 Feb 2020 21:01:56 -0800 (PST) From: Ryan Moeller X-Google-Original-From: Ryan Moeller To: libvir-list@redhat.com Subject: [PATCH] Add missing files for OpenRC Date: Sat, 22 Feb 2020 00:01:39 -0500 Message-Id: <20200222050139.88329-1-ryan@iXsystems.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 01M521vH015781 X-loop: libvir-list@redhat.com Cc: Ryan Moeller X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Ryan Moeller --- src/locking/Makefile.inc.am | 7 +++++++ src/locking/virtlockd.init.in | 14 ++++++++++++++ src/logging/Makefile.inc.am | 10 ++++++++++ src/logging/virtlogd.init.in | 14 ++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 src/locking/virtlockd.init.in create mode 100644 src/logging/virtlogd.init.in diff --git a/src/locking/Makefile.inc.am b/src/locking/Makefile.inc.am index e663d7146b..243e3ae767 100644 --- a/src/locking/Makefile.inc.am +++ b/src/locking/Makefile.inc.am @@ -79,6 +79,13 @@ VIRTLOCKD_UNIT_FILES_IN =3D \ SYSTEMD_UNIT_FILES +=3D $(notdir $(VIRTLOCKD_UNIT_FILES_IN:%.in=3D%)) SYSTEMD_UNIT_FILES_IN +=3D $(VIRTLOCKD_UNIT_FILES_IN) =20 +OPENRC_INIT_FILES +=3D \ + virtlockd.init \ + $(NULL) +OPENRC_INIT_FILES_IN +=3D \ + virtlockd.init.in \ + $(NULL) + noinst_LTLIBRARIES +=3D libvirt_driver_lock.la =20 libvirt_la_BUILT_LIBADD +=3D libvirt_driver_lock.la diff --git a/src/locking/virtlockd.init.in b/src/locking/virtlockd.init.in new file mode 100644 index 0000000000..45eaed7971 --- /dev/null +++ b/src/locking/virtlockd.init.in @@ -0,0 +1,14 @@ +#!/sbin/openrc-run + +name=3Dvirtlogd + +command=3D@sbindir@/virtlockd +pidfile=3D"@runstatedir@/virtlockd.pid" +command_args=3D"--daemon --pid-file=3D${pidfile}" +PATH=3D"${PATH}:@sbindir@:@bindir@" +supervisor=3Dsupervise-daemon + +depend() { + provide virtlockd + keyword -shutdown +} diff --git a/src/logging/Makefile.inc.am b/src/logging/Makefile.inc.am index c4fa49106e..083d8773cb 100644 --- a/src/logging/Makefile.inc.am +++ b/src/logging/Makefile.inc.am @@ -55,6 +55,13 @@ VIRTLOGD_UNIT_FILES_IN =3D \ SYSTEMD_UNIT_FILES +=3D $(notdir $(VIRTLOGD_UNIT_FILES_IN:%.in=3D%)) SYSTEMD_UNIT_FILES_IN +=3D $(VIRTLOGD_UNIT_FILES_IN) =20 +OPENRC_INIT_FILES +=3D \ + virtlogd.init \ + $(NULL) +OPENRC_INIT_FILES_IN +=3D \ + virtlogd.init.in \ + $(NULL) + noinst_LTLIBRARIES +=3D libvirt_driver_log.la =20 libvirt_la_BUILT_LIBADD +=3D libvirt_driver_log.la @@ -126,6 +133,9 @@ logging/log_daemon_dispatch_stubs.h: $(LOG_PROTOCOL) \ virLogManagerProtocol VIR_LOG_MANAGER_PROTOCOL \ $(LOG_PROTOCOL) > logging/log_daemon_dispatch_stubs.h =20 +virtlogd.init: logging/virtlogd.init.in $(top_builddir)/config.status + $(AM_V_GEN)$(SED) $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@ + virtlogd.service: logging/virtlogd.service.in $(top_builddir)/config.status $(AM_V_GEN)sed $(COMMON_UNIT_VARS) $< > $@-t && mv $@-t $@ =20 diff --git a/src/logging/virtlogd.init.in b/src/logging/virtlogd.init.in new file mode 100644 index 0000000000..61e41f7689 --- /dev/null +++ b/src/logging/virtlogd.init.in @@ -0,0 +1,14 @@ +#!/sbin/openrc-run + +name=3Dvirtlogd + +command=3D@sbindir@/virtlogd +pidfile=3D"@runstatedir@/virtlogd.pid" +command_args=3D"--daemon --pid-file=3D${pidfile}" +PATH=3D"${PATH}:@sbindir@:@bindir@" +supervisor=3Dsupervise-daemon + +depend() { + provide virtlogd + keyword -shutdown +} --=20 2.24.1