openvpn: systemd restart

This commit is contained in:
Astro 2016-12-01 19:45:09 +01:00
parent 0104ffa55c
commit e5d25ee36e
2 changed files with 13 additions and 0 deletions

View File

@ -36,6 +36,16 @@ hostroutes-{{ name }}:
name: {{ name }}
- mode: 755
/etc/systemd/system/openvpn@{{ name }}.service.d:
file.directory:
- user: root
/etc/systemd/system/openvpn@{{ name }}.service.d/restart.conf:
file.managed:
- source: salt://vpn/systemd-restart.conf
- mode: 644
- require:
- file: /etc/systemd/system/openvpn@{{ name }}.service.d
autostart-{{ name }}:
service.enabled:

View File

@ -0,0 +1,3 @@
[Service]
Restart=always
RestartSec=10s