Received: from gw1-nc.hafenthal.de (gw1-nc.hafenthal.de [89.58.45.78]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 9E3C8225DD8 for <~alpine/users@lists.alpinelinux.org>; Wed, 26 Feb 2025 16:07:43 +0000 (UTC) Received: from MAILRELAY-NC.hafenthal.de (localhost.localdomain [127.0.0.1]) by MAILRELAY-NC.hafenthal.de (Postfix) with ESMTPS id 8F1111202E7 for <~alpine/users@lists.alpinelinux.org>; Wed, 26 Feb 2025 16:07:41 +0000 (UTC) Received: from GROUPWARE-S18.hafenthal.de (unknown [10.18.8.20]) by gw1-nc.hafenthal.de (Postfix) with ESMTPS id 7535F12021D for <~alpine/users@lists.alpinelinux.org>; Wed, 26 Feb 2025 16:07:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by GROUPWARE-S18.hafenthal.de (Postfix) with ESMTP id BFA9B2039A for <~alpine/users@lists.alpinelinux.org>; Wed, 26 Feb 2025 17:07:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hafenthal.de; h= content-transfer-encoding:subject:from:reply-to:to:mime-version :date:message-id; s=dkim1; t=1740586044; x=1742400445; bh=wgQUST BohQVRJeVCsndG60PRN8oe3k4PGO1dKYwHiak=; b=YigIOcx1l87YN75f6OlbC8 x23SY6z6NAMYqHEBlALSUB4k9HXIBsHIxRyeI8Ou30kDPPSA+6wnruRI2C4+MNJV Us3z4DqXK40kYS5w3xD/NhMsXMgWWQSZDqflAMO7GbeCeddqsInAzskqyV0yNjWL xKvQ44Tr45BYmT06TWKzg= X-Virus-Scanned: Debian amavisd-new at GROUPWARE-S18.hafenthal.de Received: from GROUPWARE-S18.hafenthal.de ([127.0.0.1]) by localhost (groupware-s18.hafenthal.de [127.0.0.1]) (amavisd-new, port 10041) with ESMTP id oVuuJ8FJUB8w for <~alpine/users@lists.alpinelinux.org>; Wed, 26 Feb 2025 17:07:24 +0100 (CET) Received: from [10.18.16.35] (DTR15.hafenthal.de [10.18.16.35]) by GROUPWARE-S18.hafenthal.de (Postfix) with ESMTPSA id 7ED89200C5 for <~alpine/users@lists.alpinelinux.org>; Wed, 26 Feb 2025 17:07:24 +0100 (CET) Message-ID: Date: Wed, 26 Feb 2025 17:07:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US, de-DE To: ~alpine/users@lists.alpinelinux.org Reply-To: stefanh@hafenthal.de From: Stefan Hartmann Subject: openrc dependency rc_want, how to stop wanted service Organization: =?UTF-8?Q?Ingenieurb=C3=BCro_Hartmann_-_ib=2Ehafenthal=2Ede?= Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, I am running alpine-release 3.21.3 as virtualization host with lxc. One container is started with symlinked lxc.CONTVM as usual, where lxc.CONTVM is in default runlevel. In /etc/conf.d/lxc.CONTVM I have rc_want="dmcrypt.CONTVM" to start the symlinked /etc/init.d/dmcrypt.CONTVM to decrypt some relating stuff specified in /etc/conf.d/dmcrypt.CONTVM, eg the passphrase is correctly prompted at the console of the virtualization host. dmcrypt.CONTVM is not added to any runlevel. It works till now as expected. But when I stop the CONTVM, eg with rc-service lxc.CONTVM stop, the rc_want-dependent service dmcrypt.CONTVM is not stopped. What are neat solutions to also stop dmcrypt.CONTVM as dependency in openrc? I would be nice to only adjust conf.d/ -- stefanh