quiero correr
php /path/to/artisan opcache:optimize
para crear laravel
caché después php7.2-fpm
del inicio o después del reinicio. Intenté insertarlo /etc/init.d/php7.2-fpm
en el do_start()
método pero fallé, el código no se ejecutó.
por favor alguna idea? gracias
Respuesta1
resuelto editando/lib/systemd/system/php7.2-fpm.service
agrego ExecStartPost=/usr/bin/php /path/to/artisan opcache:optimize
y luego recargo el demonio
systemctl daemon-reload