Supervisor Will Not Start Automatically When Ubuntu Server Boots

I am working on beantalkd and supervisord for my Laravel project with vm manor. Every time I disdain the estate vm, the supervisor does not start. I need to manually enter below to run:

sudo service supervisor start

The version I'm running on is 3.0b2-1. I also installed rcconf to check which service starts automatically at boot time, and the supervisor is also checked.

Another thing I tried is to start crontab to try to start the service. The following is the crontab script I wrote:

@reboot root /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
* * * * * php /home/vagrant/projects/llpm/artisan scheduled:run 1>> /dev/null 2>&1 --env=local

However, it will not automatically start upon reboot. Anyone have a solution? Thanks in extended.

+4
source share
1 answer

I found the answer here .

Somehow it is caused by a tramp. So, what I did was add this line below to Homestead / scripts / homestead.rb:

config.vm.provision "shell", inline: "service supervisor restart", run: "always"

The observer is launched up and up.

+10
source

Source: https://habr.com/ru/post/1607072/


All Articles