2020-02-12 18:38:45 -06:00
|
|
|
[Unit]
|
|
|
|
Description=RestAPI container
|
2024-03-14 15:12:26 -05:00
|
|
|
Requires=config-setup.service
|
|
|
|
After=config-setup.service
|
2021-02-25 06:26:24 -06:00
|
|
|
BindsTo=sonic.target
|
|
|
|
After=sonic.target
|
2020-02-12 18:38:45 -06:00
|
|
|
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
|
|
|
|
RestartSec=30
|
|
|
|
|
|
|
|
[Install]
|
2021-02-25 06:26:24 -06:00
|
|
|
WantedBy=sonic.target
|