Commit 520b00613624b687f8287e667af3088375e2e4a0

Authored by Adhidarma Hadiwinoto
1 parent bc851e628b
Exists in master

VPNC systemd service optimized

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -33,6 +33,7 @@ sudo tee /etc/systemd/system/vpnc@.service << EOF
33 33 [Unit]
34 34 Description=VPNC Client %i
35 35 After=syslog.target network.target
  36 +StartLimitIntervalSec=0
36 37  
37 38 [Service]
38 39 Type=simple
... ... @@ -40,6 +41,7 @@ ExecStart=/usr/sbin/vpnc --no-detach --ifname tun-%i %i
40 41 Restart=always
41 42 User=root
42 43 Group=root
  44 +RestartSec=2
43 45  
44 46 [Install]
45 47 WantedBy=multi-user.target