From patchwork Wed Jul 21 14:41:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4550 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4GVJFg1f8Xz3xGp for ; Wed, 21 Jul 2021 14:42:15 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4GVJFc0Yz4z2B7; Wed, 21 Jul 2021 14:42:12 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4GVJFb1rl5z2yyV; Wed, 21 Jul 2021 14:42:11 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4GVJFZ2yP8z2yk8 for ; Wed, 21 Jul 2021 14:42:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4GVJFZ1K3bz1KD; Wed, 21 Jul 2021 14:42:10 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1626878530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3w+S5npkhwJEnxtc5Abd54vV2NyEh/VvvEM0xx+1PGc=; b=0UjzZpMRtA1qFe+NQL706auZlAHBPYG+y5hbiZWHjaQOfOhXwFLO3PddNsb/ZXKVllJ8+1 +QjPTmEV3BA6w7DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1626878530; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3w+S5npkhwJEnxtc5Abd54vV2NyEh/VvvEM0xx+1PGc=; b=nCLia+CT52oKEkcdzMGabvwNPl5tEmQSlmJZoZB9c1DJNEWGSgxb6xtkl+30oPUjLCfGSx 85aTl78cHx/RWWKyGn2XzGwh+9MEqqm3Y27MofLKD4RUQVwQpHLMwYrcK1KznrG02RJAfA 5nQdTZm/TSzG4nMNmy9eYRgNExCIJyOhsKbMgeEqbY1qIeWLeX1ybxNB2Swm25rnJVHKGA 6owsbu50wmg3KNuM0WMPAqQmxf/+VCwLBFnR0h7lyJJY4c8rndCP1xR3Qd2qwPgP/osKjL OGVgUa7W56OdNNiJVmHKlEoqubI6C/imMhH2UGb9J86IxFZ3JppHSrYMclgbqg== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 2/3] avahi: Reload dbus to load/unload policy Date: Wed, 21 Jul 2021 14:41:57 +0000 Message-Id: <20210721144158.25747-2-michael.tremer@ipfire.org> In-Reply-To: <20210721144158.25747-1-michael.tremer@ipfire.org> References: <20210721144158.25747-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Signed-off-by: Michael Tremer --- lfs/avahi | 2 +- src/paks/avahi/install.sh | 4 ++++ src/paks/avahi/uninstall.sh | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lfs/avahi b/lfs/avahi index 4b2b79ded..ae166a88c 100644 --- a/lfs/avahi +++ b/lfs/avahi @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = avahi -PAK_VER = 7 +PAK_VER = 8 DEPS = dbus libdaemon diff --git a/src/paks/avahi/install.sh b/src/paks/avahi/install.sh index cb0266bae..9ec3050a1 100644 --- a/src/paks/avahi/install.sh +++ b/src/paks/avahi/install.sh @@ -34,4 +34,8 @@ ln -svf ../init.d/avahi /etc/rc.d/rc3.d/S65avahi ln -svf ../init.d/avahi /etc/rc.d/rc0.d/K35avahi ln -svf ../init.d/avahi /etc/rc.d/rc6.d/K35avahi restore_backup ${NAME} + +# Reload dbus to load avahi configuration +/etc/init.d/messagebus reload + start_service --background ${NAME} diff --git a/src/paks/avahi/uninstall.sh b/src/paks/avahi/uninstall.sh index 1c8e67c9a..1a5d7a620 100644 --- a/src/paks/avahi/uninstall.sh +++ b/src/paks/avahi/uninstall.sh @@ -26,3 +26,4 @@ stop_service ${NAME} make_backup ${NAME} remove_files rm -rf /etc/rc.d/rc*.d/*avahi +/etc/init.d/messagebus reload