Start RestAPI container when sonic boots (#4140)

* Start RestAPI container when sonic boots
This commit is contained in:
Sumukha Tumkur Vani 2020-02-12 16:38:45 -08:00 committed by GitHub
parent fb3253329e
commit a9f3619901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,16 @@
[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