bundles/pppd: make sure dependent services are stopped before restarting pppoe session
This commit is contained in:
parent
7e4c69c3f1
commit
0aafeb96cd
5 changed files with 54 additions and 2 deletions
|
@ -68,6 +68,13 @@ files = {
|
|||
'svc_systemd:pppoe:restart',
|
||||
},
|
||||
},
|
||||
'/etc/ppp/wait-until-stopped': {
|
||||
'content_type': 'mako',
|
||||
'context': {
|
||||
'services': node.metadata.get('pppd', {}).get('wait-until-stopped', set()),
|
||||
},
|
||||
'mode': '0700',
|
||||
},
|
||||
'/etc/systemd/system/pppoe.service': {
|
||||
'triggers': {
|
||||
'action:systemd-reload',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue