Skip to contentSkip to conversation

Change to RemainAfterExit=yes in alsa-restore.service.in

DISCUSSION GitHub pull_request - opened 1 participant 1 message Oct 4, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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:

Quoted 2 lines

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