Skip to content

Commit a3bd46c

Browse files
SMillerDevpprkut
authored andcommitted
feat(php-fpm): restart php-fpm after an extension install
1 parent e762a51 commit a3bd46c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

php/installed.jinja

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ php_install_{{ state }}:
109109
- enablerepo: {{ enable_php_repo }}
110110
{% endif %}
111111

112+
{% set service = salt['pillar.get']('php:lookup:fpm:service', 'php-fpm') %}
113+
{% if salt['service.status'](service, False) %}
114+
{{ service }}_restart_{{ state }}:
115+
service.running:
116+
- name: {{ service }}
117+
- watch:
118+
- pkg: php_install_{{ state }}
119+
{% endif %}
120+
112121
{% for pkg in specials %}
113122

114123
php_install_{{ state }}_{{ pkg.get('name') | replace("/", "-") }}:

0 commit comments

Comments
 (0)