Skip to content

Commit

Permalink
tgtd.service: Kill tgtd after targets were deleted
Browse files Browse the repository at this point in the history
Otherwise the daemon will keep running.

Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Jul 30, 2019
1 parent bbcbb8e commit 65632a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/tgtd.service
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ ExecStop=/usr/sbin/tgtadm --op update --mode sys --name State -value offline
ExecStop=/usr/sbin/tgt-admin --verbose --offline ALL
ExecStop=/usr/sbin/tgt-admin --verbose --update ALL --force --conf /dev/null
ExecStop=/usr/sbin/tgtadm --op delete --mode system
ExecStop=/usr/sbin/kill -9 $MAINPID

# Exit code: 107 tgtd not running

# ExecStop exit code: 107 tgtd not running

[Install]
WantedBy=multi-user.target

0 comments on commit 65632a5

Please sign in to comment.