Skip to content

Commit

Permalink
systemd: clear the target config only when tcmu-runner is running
Browse files Browse the repository at this point in the history
Tested-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
  • Loading branch information
Prasanna Kumar Kalever authored and pkalever committed Oct 16, 2018
1 parent f7a628f commit 6bc89f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions systemd/gluster-block-target.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ BindsTo=tcmu-runner.service
After=glusterd.service tcmu-runner.service

[Service]
ExecStop=
ExecStop=/usr/bin/ps cax | /usr/bin/grep -wq '[t]cmu-runner' && /usr/bin/targetctl clear
TimeoutStartSec=600

0 comments on commit 6bc89f4

Please sign in to comment.