--- rpms/smeserver-php/sme10/smeserver-php.spec 2020/12/21 13:28:54 1.23 +++ rpms/smeserver-php/sme10/smeserver-php.spec 2020/12/25 20:45:28 1.24 @@ -1,5 +1,5 @@ %define version 3.0.0 -%define release 21 +%define release 22 %define name smeserver-php @@ -239,6 +239,11 @@ perl createlinks %{__mkdir_p} root/%{_presetdir} echo 'enable php-fpm.service' >root/%{_presetdir}/80-koozali-php.preset +#drop in systemd file +%{__mkdir_p} root/usr/lib/systemd/system/php-fpm.service.d +echo "[Install]" > root/usr/lib/systemd/system/php-fpm.service.d +echo "WantedBy=sme-server.target" > root/usr/lib/systemd/system/php-fpm.service.d + %{__mkdir_p} root/etc/e-smith/templates.metadata/etc/logrotate.d/ for phpver in "55" "56" "70" "71" "72" "73" "74"; do #needed folder @@ -261,6 +266,11 @@ echo 'enable php'$phpver'-php-fpm.servic echo 'TEMPLATE_PATH="/etc/logrotate.d/php-fpm" MORE_DATA={ PHP_VERSION => '$phpver'}' > root/etc/e-smith/templates.metadata/etc/logrotate.d/php$phpver-php-fpm +#drop in systemd file +%{__mkdir_p} root/usr/lib/systemd/system/php$phpver-php-fpm.service.d +echo "[Install]" > root/usr/lib/systemd/system/php$phpver-php-fpm.service.d/51koozali.conf +echo "WantedBy=sme-server.target" > root/usr/lib/systemd/system/php$phpver-php-fpm.service.d/51koozali.conf + done #to add a new php version @@ -317,6 +327,9 @@ rm -rf $RPM_BUILD_ROOT %preun %changelog +* Fri Dec 25 2020 Jean-Philipe Pialasse 3.0.0-22.sme +- add WantedBy=sme-server.target for all php-fpm service files [SME: 11294] + * Mon Dec 21 2020 John Crisp 3.0.0.21.sme - Fix createlinks typo missing event links [SME: 11287] - Fix typo