I need to find a way to edit all existing and upcoming config files in /etc/php5/fpm/pool.d/.
Whats the best way to do it and dont lose it withhin an update?
I need to find a way to edit all existing and upcoming config files in /etc/php5/fpm/pool.d/.
Whats the best way to do it and dont lose it withhin an update?
You could use the hooks provided by imscp
Thanks Ninos. Can you paste me a link to similar code, so i can see how to start?
Hi Gomez,
afaik there is no documentation. You can have a look to the existing hook-files here http://i-mscp.net/filebase/index.php/FileList/16-Hook-Files/ and build your own one.
Greets
Chris
You could use the afterHttpdBuildConfFile event.
Ref:
I prefers the onLoadTemplate event for such a thing. With that event, he can replace the pool configuration file with its own version The onLoadTemplate event has been added exactly for that purpose
This event is triggered as follow:
So here, he must listen to that event and then, check for the $filename passed in ( pool.conf ). Then, provide its own template using the \$cfgTpl variable which is a scalar reference.
Do you really need an example or do you'll figure out alone with those information?
Refs
Thanks, that helps me get started..