From 6c97a505be26910c31f64e6d82c7317fcf807ea8 Mon Sep 17 00:00:00 2001 From: Casper Date: Mon, 13 Mar 2023 00:39:03 +0100 Subject: [PATCH] fix: postsrsd restart loop (#3160) --- target/supervisor/conf.d/supervisor-app.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/supervisor/conf.d/supervisor-app.conf b/target/supervisor/conf.d/supervisor-app.conf index 4c6c10d1..d426831f 100644 --- a/target/supervisor/conf.d/supervisor-app.conf +++ b/target/supervisor/conf.d/supervisor-app.conf @@ -148,7 +148,7 @@ autostart=false autorestart=true stdout_logfile=/var/log/supervisor/%(program_name)s.log stderr_logfile=/var/log/supervisor/%(program_name)s.log -command=/etc/init.d/postsrsd start +command=/bin/bash -c 'env $(grep -vE "^(#.*|\s*)$" /etc/default/postsrsd) postsrsd -e -p /var/run/postsrsd.pid' [program:update-check] startsecs=0