Skip to content

Commit 305375b

Browse files
sumukhatvStepan Blyschak
authored andcommitted
Start RestAPI container when sonic boots (sonic-net#4140)
* Start RestAPI container when sonic boots
1 parent 1b6b45e commit 305375b

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=RestAPI container
3+
Requires=updategraph.service
4+
After=updategraph.service
5+
Before=ntp-config.service
6+
7+
[Service]
8+
User={{ sonicadmin_user }}
9+
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
10+
ExecStart=/usr/bin/{{docker_container_name}}.sh wait
11+
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
12+
Restart=always
13+
RestartSec=30
14+
15+
[Install]
16+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)