symfony - Does Symfony2 logfile rotation require SIGHUP or restart? -
i'm working logrotate configuration file rotate symfony2 logs. have restart anything? standard symfony2 application, don't see keeps logfile file descriptors open.
here's came rotate logs:
/user/app/logs/*.log { missingok notifempty }
if there long-running process (a daemon) used symfony2 framework, i'd imagine process have restarted during log rotation.
php applications use "shared-nothing" approach - each , every page load starts scratch, no open file descriptors or similar. when using fastcgi approach, keeps php engine being re-executed each request, still case.
so no, shouldn't need restart - new requests output new log files no effort needed.
the 1 situation might not case when using worker processes (for instance, servicing queues), that's you'd aware of if using it.
Comments
Post a Comment