From nobody Sat Feb 7 21:08:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1578045520; cv=none; d=zohomail.com; s=zohoarc; b=QvPugSFnkPTSBFL4OCt4p1rjLE5gjDiNb89lGr6BaSwTt4mkujJ5cLHi9JH9S7RgXD6xz/98g/ASDGJuureeVDVyIi1LIut0J/hiDb0qbtj5pTtHmtlYreHSLqn38BioD9VrMUnb/JHkwgaftBxiiZ5T27IMx3WM2iRaHyGZaEw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578045520; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=yKyFcTAoeB6Wsk60rZyof/AeqTUaqF+sjaRQ7MWX7mQ=; b=QeoNV/Paq/Sxk+1Xd1sQXjAD5hTEPT4JN73VUF9Rxirv4HXdGG1sxanU6D5sDESMt/0QnqrhwYvjKx/XL0lmE1QBsG2+QLRxiien9/nXTbP//MfifGiBlFaEfyKD4FBEDjhkxWu+tO6awVKadsjIVLNzZtzdknMFd1T5UGPHH7M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1578045520225372.0302490102157; Fri, 3 Jan 2020 01:58:40 -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-391-7fNsKKCdOFO5kKq2v4HhIQ-1; Fri, 03 Jan 2020 04:58:35 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B49D58024DB; Fri, 3 Jan 2020 09:58:26 +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 90D3D5DA2C; Fri, 3 Jan 2020 09:58:26 +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 47ED118089CE; Fri, 3 Jan 2020 09:58:26 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 002Hkst9017574 for ; Thu, 2 Jan 2020 12:46:54 -0500 Received: by smtp.corp.redhat.com (Postfix) id A176E2022AA8; Thu, 2 Jan 2020 17:46:54 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast03.extmail.prod.ext.rdu2.redhat.com [10.11.55.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9C4032026D69 for ; Thu, 2 Jan 2020 17:46:54 +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 7DBA0802FF2 for ; Thu, 2 Jan 2020 17:46:54 +0000 (UTC) Received: from mail-yb1-f194.google.com (mail-yb1-f194.google.com [209.85.219.194]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-314-ltrdzOORM7WiuBeXNLc3Nw-1; Thu, 02 Jan 2020 12:46:52 -0500 Received: by mail-yb1-f194.google.com with SMTP id l7so9730411ybp.1 for ; Thu, 02 Jan 2020 09:46:52 -0800 (PST) Received: from mp03.tn.ixsystems.com ([12.189.233.131]) by smtp.gmail.com with ESMTPSA id a202sm21904073ywe.8.2020.01.02.09.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 09:46:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578045519; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yKyFcTAoeB6Wsk60rZyof/AeqTUaqF+sjaRQ7MWX7mQ=; b=HK8eNBm2rjNMsYBJla46WYBskZBLWeY9nDH8TYnOo+LrF7YaHXI8A/X5bbLKzKS6++ql+F fM676UHV8jZb4O14LBgwydgNrINXN3yiFttGz9phk7h0YAiL13gd/Ib/Ayl3s2IfN0rI3d c1JFh1DpIBnW9eqEUB1Ek/av5UfreOQ= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ya7LKzl68U1R7+xMEFeAofTIx4s8XpAKG+WrxGkizdw=; b=gWUrZk0BGxEMZmdQkNOZRBRGBcOW7ZejIDMgLUghCe236EsqBnavP8gmUr17Li8bna 14c4EciO292UCgMJy5gNuLNMS6kN1sEV/9qryDiFSoFiDSdU5gFQ6RxWd2EBbNv0bPrs QpyDQNuuPMDpoHHh5Kc3TygPYQSpEa6HZw11sZLtULgyRitShYLrveUlCGJTKOnSQmeb 9DM/LVc3pjH8pbddIcc0OPF7yHInZ4PjvJ66qdbMlgwjmLqyHFCeh84xsehz3Ty5y3zp 86MscKdY6W4b8lZWcRNxOkkPiRyc9xtN2YZ6gteiAyfbfXqQCBY13HTP5MRST0FAKzLJ FSiQ== X-Gm-Message-State: APjAAAUwNa3HkoOHpJWGNK2xz6QTwpyPxa9GMMZRetsntnlozokElpIa c20iDdcHsb4dKRwhLKhOdVEL0uTzNxn8gdFGHT+xiuFR4Bj0ZI4hczO4SQrgZNnag6UPuxg9j1g rnfWUaR32n7rbGwFnooiWN8UaJoaKChT7FwSUPcYnD0ayR0hhGZXMI7A5Tlqs7HXbUpc= X-Google-Smtp-Source: APXvYqzsjtoao57BI8odX1Th3E5aL9iqZMo+LwHIzQKVckJ7gbYMog2RvtU2O8pFrvylYoBARFTkOw== X-Received: by 2002:a25:8488:: with SMTP id v8mr61424875ybk.390.1577987211519; Thu, 02 Jan 2020 09:46:51 -0800 (PST) From: Ryan Moeller X-Google-Original-From: Ryan Moeller To: libvir-list@redhat.com Date: Thu, 2 Jan 2020 17:46:35 +0000 Message-Id: <20200102174635.7231-13-ryan@iXsystems.com> In-Reply-To: <20200102174635.7231-1-ryan@iXsystems.com> References: <20200102174635.7231-1-ryan@iXsystems.com> MIME-Version: 1.0 X-MC-Unique: ltrdzOORM7WiuBeXNLc3Nw-1 X-MC-Unique: 7fNsKKCdOFO5kKq2v4HhIQ-1 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 002Hkst9017574 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Fri, 03 Jan 2020 04:57:56 -0500 Cc: Ryan Moeller Subject: [libvirt] [PATCH v2 12/12] Add missing virtlogd.init for OpenRC 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.14 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" From: Ryan Moeller Signed-off-by: Ryan Moeller Reviewed-by: Daniel P. Berrang=C3=A9 --- src/logging/Makefile.inc.am | 10 ++++++++++ src/logging/virtlogd.init.in | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 src/logging/virtlogd.init.in diff --git a/src/logging/Makefile.inc.am b/src/logging/Makefile.inc.am index 0f7ffa73b3..8e6ea08f36 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 @@ -128,6 +135,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.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list