2021-01-25 19:43:56 -06:00
|
|
|
[Unit]
|
|
|
|
Description=MUX Cable Container
|
|
|
|
Requires=database.service updategraph.service pmon.service swss.service
|
|
|
|
After=pmon.service swss.service
|
2021-04-15 20:02:18 -05:00
|
|
|
BindsTo=sonic.target
|
|
|
|
After=sonic.target
|
2021-01-25 19:43:56 -06:00
|
|
|
StartLimitIntervalSec=1200
|
|
|
|
StartLimitBurst=3
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
User={{ sonicadmin_user }}
|
2021-05-05 01:14:48 -05:00
|
|
|
ExecStartPre=/usr/local/bin/write_standby.py
|
2021-01-25 19:43:56 -06:00
|
|
|
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
|
|
|
|
ExecStart=/usr/bin/{{docker_container_name}}.sh wait
|
|
|
|
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
|
2021-05-05 01:14:48 -05:00
|
|
|
ExecStopPost=/usr/local/bin/write_standby.py
|
2021-01-25 19:43:56 -06:00
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
|
2021-10-26 16:10:13 -05:00
|
|
|
[Service]
|
|
|
|
User={{ sonicadmin_user }}
|
|
|
|
ExecStartPre=/usr/local/bin/mark_dhcp_packet.py
|
|
|
|
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
|
|
|
|
ExecStart=/usr/bin/{{docker_container_name}}.sh wait
|
|
|
|
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
|
|
|
|
ExecStopPost=/usr/local/bin/mark_dhcp_packet.py
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
|
2021-01-25 19:43:56 -06:00
|
|
|
[Install]
|
2021-07-20 20:21:09 -05:00
|
|
|
WantedBy=sonic.target
|