Edit all config files in /etc/php5/fpm/pool.d/

  • 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?

  • @Ninos


    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. ;)


    @Gomez


    Do you really need an example or do you'll figure out alone with those information?


    Refs

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206