Can Supervisord be used by non-root users? Hi, I am owner of a centos 7 plesk server and I want to manage all deployment process over one user. When my deployment is done, I need to restart supervisor process. But my user can not access supervisor.
@MohamedTammam I tryed this, but solution is not so clear, and still can not access supervisor
You need to define a user property in your config.
Here's what I have:
[supervisord]
nodaemon=true
user=<user>
logfile=/var/www/storage/logs/supervisord.log
pidfile=/tmp/supervisord.pid
[unix_http_server]
file=/tmp/supervisor.sock
[program:laravel-horizon]
process_name=%(program_name)s
command=php /var/www/artisan horizon
user=<user>
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/www/storage/logs/horizon.log
stopwaitsecs=3600
[program:laravel-scheduler]
process_name=%(program_name)s
command=php /var/www/artisan schedule:work
user=<user>
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/var/www/storage/logs/schedule.log
stopwaitsecs=3600
Please sign in or create an account to participate in this conversation.