2015-07-25 11:39:50 +02:00
|
|
|
# Manages the php-hhvm service.
|
|
|
|
{% from "php/ng/map.jinja" import php with context %}
|
|
|
|
{% from "php/ng/macro.jinja" import sls_block %}
|
|
|
|
|
|
|
|
{% set service_function = {True:'running', False:'dead'}.get(php.hhvm.service.enabled) %}
|
|
|
|
|
|
|
|
include:
|
2019-07-28 07:05:22 +02:00
|
|
|
- php.ng.deprecated
|
2015-07-25 11:39:50 +02:00
|
|
|
- php.ng.hhvm.install
|
|
|
|
|
|
|
|
php_hhvm_service:
|
|
|
|
service.{{ service_function }}:
|
|
|
|
{{ sls_block(php.hhvm.service.opts) }}
|
|
|
|
- name: {{ php.lookup.hhvm.service }}
|
|
|
|
- enable: {{ php.hhvm.service.enabled }}
|
|
|
|
- require:
|
|
|
|
- sls: php.ng.hhvm.install
|
|
|
|
- watch:
|
2019-07-28 07:05:22 +02:00
|
|
|
- pkg: php_install_hhvm
|
2015-07-25 11:39:50 +02:00
|
|
|
|