Failed to restart supervisor.service: Unit not found CentOS 7

Viewed 5808

I am trying to use laravel queue:work on live server and keep alive the work using Supervisor. After configuration it shows as follows:

[root@vmi485931 supervisord.d]# sudo supervisorctl reload
Restarted supervisord
[root@vmi485931 supervisord.d]# sudo service supervisor restart
Redirecting to /bin/systemctl restart supervisor.service
Failed to restart supervisor.service: Unit not found.

enter image description here

Any clue?

2 Answers

If you are trying to restart the processes that are run by supervisor, run sudo supervisorctl restart all You can use supervisor process name instead of 'all' to restart a specific process.

If you are trying to restart supervisor itself,sudo systemctl restart supervisor should work.

Related