-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nvidia] make sure shared storage with syncd is cleared on restarts
Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
- Loading branch information
1 parent
03c02e3
commit fe773e2
Showing
4 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=Manage Nvidia specific syncd shared volume | ||
Requires=docker.service | ||
After=docker.service | ||
BindsTo=sonic.target | ||
After=sonic.target | ||
PartOf=syncd.service | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=rm -rf /tmp/nv-syncd-shared/ | ||
ExecStart=mkdir -p /tmp/nv-syncd-shared/ | ||
|
||
[Install] | ||
WantedBy=sonic.target | ||
|