Перезапустите systemd .service с модулем .timer

Для PulseAudio Роланд Хаас написал инструмент:
https://github.com/rhaas80/pa_volume

Мне пришлось установить libpulse-devlinux-libc-devlibc6-devzlib1g-devlibpcre3-devlibglib2.0-0libglib2.0-dev.
Вам также может понадобиться компилятор (gcc )to make.

Источник:https://askubuntu.com/a/968540/382812«Как изменить громкость воспроизведения pulseaudio -приложений / -потоков, которые в данный момент не используются?»

4
15.10.2019, 21:56
1 ответ

Если модуль.service будет выполняться из модуля.timer, он не может иметь RemainAfterExit=true. В документации systemd упоминается, что:

Note that in case the unit to activate is already active at the time the timer elapses it is not restarted, but simply left running. There is no concept of spawning new service instances in this case. Due to this, services with RemainAfterExit= set (which stay around continuously even after the service's main process exited) are usually not suitable for activation via repetitive timers, as they will only be activated once, and then stay around forever.

Итак, удалите RemainAfterExit=trueи все заработает.

4
27.01.2020, 20:54

Теги

Похожие вопросы