From 4ce8a75d9dae6b51a70be752102f7e86e342f87e Mon Sep 17 00:00:00 2001 From: zii Date: Sat, 24 Feb 2024 21:10:06 -0500 Subject: [PATCH] v3.4.t1 - the recorder service is having problems with ffmpeg stalling out once again. added "RuntimeMaxSec" to the service files to see if that helps. --- src/common.h | 2 +- src/services.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.h b/src/common.h index 3851e39..b53c377 100644 --- a/src/common.h +++ b/src/common.h @@ -30,7 +30,7 @@ using namespace std; -#define APP_VER "3.3" +#define APP_VER "3.4.t1" #define APP_NAME "Motion Watch" #define APP_BIN "mow" #define DATETIME_FMT "yyyyMMddhhmmss" diff --git a/src/services.cpp b/src/services.cpp index ec5d14b..34367c6 100644 --- a/src/services.cpp +++ b/src/services.cpp @@ -43,7 +43,7 @@ int loadService(const QString &desc, const QString &user, const QString &servNam file.write("Type=simple\n"); file.write("User=" + user.toUtf8() + "\n"); file.write("Restart=always\n"); - file.write("TimeoutStopSec=infinity\n"); + file.write("RuntimeMaxSec=62\n"); file.write("ExecStart=/usr/bin/env " + servName.toUtf8() + "\n\n"); file.write("[Install]\n"); file.write("WantedBy=multi-user.target\n");