日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | 5a51423b47984022869f8756124b6881b06adc2f (tree) |
---|---|
Time | 2019-02-10 11:42:51 |
Author | Fumihisa TONAKA <fumi.ftnk@gmai...> |
Commiter | Fumihisa TONAKA |
SFEphp71: add php-fpm71jposug.xml
@@ -0,0 +1,35 @@ | ||
1 | +<?xml version="1.0"?> | |
2 | +<!-- This is based on https://gist.github.com/webjay/888451 --> | |
3 | +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
4 | +<service_bundle type="manifest" name="php-fpm71jposug"> | |
5 | + <service name="network/php-fpm71jposug" type="service" version="1"> | |
6 | + <create_default_instance enabled='false'/> | |
7 | + <single_instance/> | |
8 | + <dependency name="network" grouping="require_all" restart_on="error" type="service"> | |
9 | + <service_fmri value="svc:/milestone/network:default"/> | |
10 | + </dependency> | |
11 | + <dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> | |
12 | + <service_fmri value="svc:/system/filesystem/local"/> | |
13 | + </dependency> | |
14 | + <dependent name="nginx" restart_on="none" grouping="optional_all"> | |
15 | + <service_fmri value="svc:/milestone/multi-user"/> | |
16 | + </dependent> | |
17 | + <method_context project=":default" resource_pool=":default" working_directory=":default"/> | |
18 | + <exec_method type="method" name="start" exec="/opt/jposug/php/7.1/sbin/php-fpm -c /etc/php/7.1jposug/php.ini -y %{config_file}" timeout_seconds="60"/> | |
19 | + <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"/> | |
20 | + <exec_method type="method" name="refresh" exec=":kill -HUP" timeout_seconds="60"/> | |
21 | + <property_group name="application" type="application"> | |
22 | + <propval name="config_file" type="astring" value="/etc/php/7.1jposug/php-fpm.conf"/> | |
23 | + </property_group> | |
24 | + <property_group name="startd" type="framework"> | |
25 | + <propval name="duration" type="astring" value="contract"/> | |
26 | + <propval name="ignore_error" type="astring" value="core,signal"/> | |
27 | + </property_group> | |
28 | + <stability value="Evolving"/> | |
29 | + <template> | |
30 | + <common_name> | |
31 | + <loctext xml:lang="C">PHP FastCGI Process Manager</loctext> | |
32 | + </common_name> | |
33 | + </template> | |
34 | + </service> | |
35 | +</service_bundle> |