2020-01-29 19:40:43 -06:00
|
|
|
[Unit]
|
|
|
|
Description=NAT container
|
2024-03-14 15:12:26 -05:00
|
|
|
Requires=config-setup.service
|
|
|
|
After=config-setup.service swss.service syncd.service
|
2021-02-25 06:26:24 -06:00
|
|
|
BindsTo=sonic.target
|
|
|
|
After=sonic.target
|
2020-01-29 19:40:43 -06:00
|
|
|
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
|
|
|
RestartSec=30
|
2020-01-29 19:40:43 -06:00
|
|
|
|
|
|
|
[Install]
|
2021-02-25 06:26:24 -06:00
|
|
|
WantedBy=sonic.target
|
2020-01-29 19:40:43 -06:00
|
|
|
|