2020-01-29 19:40:43 -06:00
|
|
|
[Unit]
|
|
|
|
Description=NAT container
|
|
|
|
Requires=updategraph.service swss.service
|
|
|
|
After=updategraph.service swss.service syncd.service
|
|
|
|
Before=ntp-config.service
|
2020-03-05 17:27:21 -06:00
|
|
|
StartLimitIntervalSec=1200
|
|
|
|
StartLimitBurst=3
|
2020-01-29 19:40:43 -06:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ sonicadmin_user }}
|
|
|
|
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
|
|
|
|
ExecStart=/usr/bin/{{docker_container_name}}.sh wait
|
|
|
|
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
|
2020-03-05 17:27:21 -06:00
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
2020-01-29 19:40:43 -06:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target swss.service
|
|
|
|
|