Skip to content

Commit

Permalink
Add FLUSH DB commands to swss service missed during merge (#248)
Browse files Browse the repository at this point in the history
* Add FLUSH DB commands to swss service missed during merge

* Update swss.service.j2
  • Loading branch information
oleksandrivantsiv authored and lguohan committed Feb 4, 2017
1 parent b2e4483 commit 2b113c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion files/build_templates/swss.service.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[Unit]
Description=orchagent container
Description=switch state service container
Requires=database.service
After=database.service

[Service]
User={{ sonicadmin_user }}
ExecStartPre=/usr/bin/docker exec database redis-cli -n 0 FLUSHDB
ExecStartPre=/usr/bin/docker exec database redis-cli -n 1 FLUSHDB
ExecStartPre=/usr/bin/docker exec database redis-cli -n 2 FLUSHDB
ExecStart=/usr/bin/{{docker_container_name}}.sh start
ExecStop=/usr/bin/{{docker_container_name}}.sh stop
ExecStopPost=/usr/bin/syncd.sh stop
Expand Down

0 comments on commit 2b113c4

Please sign in to comment.