2019-09-14 22:27:09 -05:00
|
|
|
[Unit]
|
|
|
|
Description=sFlow container
|
2019-12-03 11:50:49 -06:00
|
|
|
Requisite=swss.service
|
2020-12-03 03:33:10 -06:00
|
|
|
After=swss.service syncd.service hostcfgd.service
|
2021-02-25 06:26:24 -06:00
|
|
|
BindsTo=sonic.target
|
|
|
|
After=sonic.target
|
2019-09-14 22:27:09 -05:00
|
|
|
Before=ntp-config.service
|
2019-11-25 15:02:00 -06:00
|
|
|
StartLimitIntervalSec=1200
|
|
|
|
StartLimitBurst=3
|
2019-09-14 22:27:09 -05: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
|
2019-11-25 15:02:00 -06:00
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
2019-09-14 22:27:09 -05:00
|
|
|
|
|
|
|
[Install]
|
2021-02-25 06:26:24 -06:00
|
|
|
WantedBy=sonic.target
|