I want to run
php /path/to/artisan opcache:optimize
to build laravel
cache after php7.2-fpm
start or after restart.
I have tried to insert it on /etc/init.d/php7.2-fpm
in do_start()
method but failed the code didn't execute.
please any idea? thanks