From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5E5A3C433F5 for ; Tue, 4 Oct 2022 21:29:47 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 9A3BE16F3; Tue, 4 Oct 2022 23:28:55 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 9A3BE16F3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1664918985; bh=g+hISo7Y4tSXDfyOw3TtrfdZm00D9U8tzk6VCs1GTlw=; h=From:To:In-Reply-To:References:Subject:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=hV4d5oaAXk4y23/j6zt32ZYEDWva2qC7sZrbvx/5SLPpsfZGYf4vHoyv7Hy3T5VSt bqbic7nZ/d+Pj3f5nEpO0C9B4faW20hK5CjMPqwgM2FFnznIKu/KTRJaEGodHjJpGp TirLFx6sqWCiK2bhODqgoTloE5ge9MXKWCh2zqnE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 2D549F80162; Tue, 4 Oct 2022 23:28:55 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 2D7E8F801EC; Tue, 4 Oct 2022 23:28:52 +0200 (CEST) Received: from webhooks-bot.alsa-project.org (gate.perex.cz [77.48.224.242]) by alsa1.perex.cz (Postfix) with ESMTP id B1B19F8012A for ; Tue, 4 Oct 2022 23:28:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B1B19F8012A MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: GitHub pull_request - opened To: alsa-devel@alsa-project.org In-Reply-To: <1664918924433600903-webhooks-bot@alsa-project.org> References: <1664918924433600903-webhooks-bot@alsa-project.org> Subject: Change to RemainAfterExit=yes in alsa-restore.service.in Message-Id: <20221004212852.2D7E8F801EC@alsa1.perex.cz> Date: Tue, 4 Oct 2022 23:28:52 +0200 (CEST) X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" alsa-project/alsa-utils pull request #171 was opened from stele95: Fresh Manjaro installation. Default volume value was 75%, no matter to what value I change it, it resets to 75% on reboot/shutdown. After changing to `RemainAfterExit=yes` from `RemainAfterExit=true` in `alsa-restore.service`, the volume value is properly saved and restored on reboot/shutdown. I did check the following [link](https://www.freedesktop.org/software/systemd/man/systemd.service.html) and it says: > RemainAfterExit= > Takes a boolean value that specifies whether the service shall be considered active even when all its processes exited. Defaults to no. But if you look at `Example 4. Stoppable oneshot service`, it clearly sets `RemainAfterExit=yes` with `Type=oneshot`. Request URL : https://github.com/alsa-project/alsa-utils/pull/171 Patch URL : https://github.com/alsa-project/alsa-utils/pull/171.patch Repository URL: https://github.com/alsa-project/alsa-utils