Update README
This commit is contained in:
parent
f3ae147a7d
commit
bf401a2a27
18
README.md
18
README.md
|
@ -7,6 +7,24 @@ another charm.
|
|||
|
||||
The interface provides the `service-control.connected` state.
|
||||
|
||||
Requesting a restart of all remote services:
|
||||
|
||||
```python
|
||||
@reactive.when('service-control.connected')
|
||||
def configure(service_control):
|
||||
...
|
||||
service_control.request_restart()
|
||||
```
|
||||
|
||||
Requesting a restart of a specific type of remote services:
|
||||
|
||||
```python
|
||||
@reactive.when('service-control.connected')
|
||||
def configure(service_control):
|
||||
...
|
||||
service_control.request_restart(service_type='neutron')
|
||||
```
|
||||
|
||||
# metadata
|
||||
|
||||
To consume this interface in your charm or layer, add the following to
|
||||
|
|
Loading…
Reference in New Issue