equal
deleted
inserted
replaced
1 <?xml version="1.0" ?> |
1 <?xml version="1.0" ?> |
2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
2 <!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> |
3 <!-- |
3 <!-- |
4 Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
4 Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
5 |
5 |
6 Licensed under the Apache License, Version 2.0 (the "License"); you may |
6 Licensed under the Apache License, Version 2.0 (the "License"); you may |
7 not use this file except in compliance with the License. You may obtain |
7 not use this file except in compliance with the License. You may obtain |
8 a copy of the License at |
8 a copy of the License at |
9 |
9 |
26 name="application/openstack/neutron/neutron-dhcp-agent"> |
26 name="application/openstack/neutron/neutron-dhcp-agent"> |
27 |
27 |
28 <dependency name='multiuser' grouping='require_all' restart_on='error' |
28 <dependency name='multiuser' grouping='require_all' restart_on='error' |
29 type='service'> |
29 type='service'> |
30 <service_fmri value='svc:/milestone/multi-user:default' /> |
30 <service_fmri value='svc:/milestone/multi-user:default' /> |
|
31 </dependency> |
|
32 |
|
33 <dependency name='upgrade' grouping='require_all' restart_on='none' |
|
34 type='service'> |
|
35 <service_fmri |
|
36 value='svc:/application/openstack/neutron/neutron-upgrade' /> |
31 </dependency> |
37 </dependency> |
32 |
38 |
33 <!-- neutron-dhcp-agent uses dnsmasq which is incompatible with running |
39 <!-- neutron-dhcp-agent uses dnsmasq which is incompatible with running |
34 BIND, ISC DHCP, and TFTP --> |
40 BIND, ISC DHCP, and TFTP --> |
35 <dependency name='exclude-bind' grouping='exclude_all' restart_on='none' |
41 <dependency name='exclude-bind' grouping='exclude_all' restart_on='none' |
60 <dependency name='ntp' grouping='optional_all' restart_on='none' |
66 <dependency name='ntp' grouping='optional_all' restart_on='none' |
61 type='service'> |
67 type='service'> |
62 <service_fmri value='svc:/network/ntp'/> |
68 <service_fmri value='svc:/network/ntp'/> |
63 </dependency> |
69 </dependency> |
64 |
70 |
|
71 <dependency name='rabbitmq' grouping='optional_all' restart_on='none' |
|
72 type='service'> |
|
73 <service_fmri value='svc:/network/amqp/rabbitmq'/> |
|
74 </dependency> |
|
75 |
65 <logfile_attributes permissions='600'/> |
76 <logfile_attributes permissions='600'/> |
66 |
77 |
67 <exec_method timeout_seconds="60" type="method" name="start" |
78 <exec_method timeout_seconds="60" type="method" name="start" |
68 exec="/lib/svc/method/neutron-dhcp-agent %m %{config/config_path} %{config/dhcp_config_path}"> |
79 exec="/lib/svc/method/neutron-dhcp-agent %m %{config/config_path} %{config/dhcp_config_path}"> |
69 <method_context> |
80 <method_context> |
72 </method_context> |
83 </method_context> |
73 </exec_method> |
84 </exec_method> |
74 <exec_method timeout_seconds="600" type="method" name="stop" |
85 <exec_method timeout_seconds="600" type="method" name="stop" |
75 exec="/lib/svc/method/neutron-dhcp-agent %m %{restarter/contract}"> |
86 exec="/lib/svc/method/neutron-dhcp-agent %m %{restarter/contract}"> |
76 <method_context> |
87 <method_context> |
77 <method_credential user='neutron' group='neutron' /> |
88 <!-- sys_ip_config is required to set 'hostmodel' ipadm property --> |
|
89 <method_credential user='neutron' group='neutron' privileges='basic,sys_ip_config' /> |
78 </method_context> |
90 </method_context> |
79 </exec_method> |
91 </exec_method> |
80 |
92 |
81 <instance name='default' enabled='false'> |
93 <instance name='default' enabled='false'> |
82 <!-- to start/stop/refresh the service --> |
94 <!-- to start/stop/refresh the service --> |