From c975ce55a52bdebdf5a12fe548e15181a48d9f4d Mon Sep 17 00:00:00 2001 From: Besi Date: Mon, 19 Jan 2026 16:55:42 +0100 Subject: [PATCH] Configure aplay service to restart on failure Add restart policy for aplay service --- i2samp.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/i2samp.py b/i2samp.py index 140e982..ee5ee86 100644 --- a/i2samp.py +++ b/i2samp.py @@ -105,6 +105,9 @@ def main(): Description=Invoke aplay from /dev/zero at system start. [Service] +Restart=on-failure +RestartSec=5s + ExecStart=/usr/bin/aplay -D default -t raw -r 44100 -c 2 -f S16_LE /dev/zero [Install]