How can I restart php-fpm to clean OP Cache and/or APC Cache? In other Debian instances I could simply run
service php-fpm restart
but here php is not a service..
service --status-all
[ - ] bootlogs
[ - ] bootmisc.sh
[ - ] checkfs.sh
[ - ] checkroot-bootclean.sh
[ - ] checkroot.sh
[ - ] cron
[ - ] exim4
[ - ] hostname.sh
[ ? ] hwclock.sh
[ - ] killprocs
[ - ] motd
[ - ] mountall-bootclean.sh
[ - ] mountall.sh
[ - ] mountdevsubfs.sh
[ - ] mountkernfs.sh
[ - ] mountnfs-bootclean.sh
[ - ] mountnfs.sh
[ - ] procps
[ - ] rc.local
[ - ] rmnologin
[ - ] rsync
[ - ] sendsigs
[ + ] udev
[ ? ] udev-finish
[ - ] umountfs
[ - ] umountnfs.sh
[ - ] umountroot
[ - ] urandom
you can send USR2 signal:
http://serverfault.com/questions/444673/php-fpm-signals-for-pool-error-log-rotation
I didn't tested it, but it should works. I used the same thing to restart apache in docker
Think of the container as the service; the only thing running in the container is php-fpm, so docker restart my-fpm-container would work. (assuming that your nginx or other front end can properly route to the new container)
I dont want to restart whole virtual machine, the website must be working
24/7
2016-11-23 20:13 GMT+01:00 yosifkit notifications@github.com:
Think of the container as the service; the only thing running in the
container is php-fpm, so docker restart my-fpm-container would work.
(assuming that your nginx or other front end can properly route to the new
container)—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/docker-library/php/issues/332#issuecomment-262605786,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEwC8rT5S8pZkb_nPGGfVAxV_CXWCw6Tks5rBJA_gaJpZM4K6b17
.
@JarJak what stops you adding a new container forwarding the traffic to that and removing the old contain? Containers should be immutable anyway.
See #399 ... Issue should be closed.
Most helpful comment
@JarJak what stops you adding a new container forwarding the traffic to that and removing the old contain? Containers should be immutable anyway.