Hi,
I'm new to the list. I would like to call and execute a script with
supervisor as a normal user, not as root. I add the "user=USER" line
in the [program:XY] block but it is ignored. Here is my setup:
location of the script: /home/jabba/Dropbox/python/supervisor/proba.sh
content of the script:
#!/usr/bin/bash
while :
do
echo "1" >> /tmp/supervisor.txt
sleep 1
done
supervisor config file /etc/supervisor/conf.d/proba.conf :
[program:proba]
command=/home/jabba/Dropbox/python/supervisor/proba.sh
user=jabba
autostart=true
autorestart=true
redirect_stderr=true
stopsignal=QUIT
When I launch the program with supervisor, /tmp/supervisor.txt is
created, but it is owned by the root:
-rw-r--r-- 1 root root 1072 Oct 9 13:47 supervisor.txt
supervisord is launched by the root. Installed version: 3.0a8-1.1
My final goal would be to start a gunicorn http server as www-data but
first I would like to solve this toy problem.
Thanks,
Laszlo
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users