sonic-buildimage/files/build_templates/restapi.service.j2
Sumukha Tumkur Vani bee0e8c96a Start RestAPI container when sonic boots (#4140)
* Start RestAPI container when sonic boots
2020-02-13 00:53:03 +00:00

16 lines
384 B
Django/Jinja

[Unit]
Description=RestAPI container
Requires=updategraph.service
After=updategraph.service
Before=ntp-config.service
[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
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target