c2ae736f2e
* [warmboot] Load database from `redis-cli save` Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Add trivial statement to make bash function valid Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Update submodule sonic-utilities: Use 'redis-cli save' to dump database to file Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Move configdb-load.sh outside docker, and only run in cold Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com> * Fix for more strict warm check Signed-off-by: Qi Luo <qiluo-msft@users.noreply.github.com>
14 lines
306 B
Django/Jinja
14 lines
306 B
Django/Jinja
[Unit]
|
|
Description=Database container
|
|
Requires=docker.service
|
|
After=docker.service
|
|
|
|
[Service]
|
|
User=root
|
|
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start
|
|
ExecStart=/usr/bin/{{docker_container_name}}.sh attach
|
|
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|