From 08119e710a436ecc67935f3fa8fa826db0055834 Mon Sep 17 00:00:00 2001 From: Mathieu Bruyen Date: Sat, 15 Dec 2018 11:11:05 +0100 Subject: [PATCH] not run as root --- supervisor.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supervisor.conf b/supervisor.conf index 3c971d0..5e82d72 100644 --- a/supervisor.conf +++ b/supervisor.conf @@ -1,5 +1,7 @@ [supervisord] nodaemon=true +user=nginx +logfile=/tmp/supervisord.log [program:nginx] command=nginx -g "daemon off;" @@ -20,7 +22,7 @@ stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [eventlistener:feed-update] -command=php7 -r 'while (true) { print("READY\n"); readline(); print("feeds update"); passthru("php7 /var/lib/tt-rss/update.php --daemon-loop"); print("RESULT 2\nOK"); }' +command=php7 -r 'while (true) { print("READY\n"); readline(); passthru("php7 /var/lib/tt-rss/update.php --daemon-loop"); print("RESULT 2\nOK\n"); }' events=TICK_60 autostart=true autorestart=true