Skip to content

Commit bbb40d0

Browse files
committed
tgtd.service: Kill tgtd after targets were deleted
Otherwise the daemon will keep running. Signed-off-by: Daniel Schaefer <[email protected]>
1 parent 16a544d commit bbb40d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tgtd.service

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ ExecStop=/usr/sbin/tgtadm --op update --mode sys --name State --value offline
2020
ExecStop=/usr/sbin/tgt-admin --verbose --offline ALL
2121
ExecStop=/usr/sbin/tgt-admin --verbose --update ALL --force --conf /dev/null
2222
ExecStop=/usr/sbin/tgtadm --op delete --mode system
23+
ExecStop=/usr/sbin/kill -9 $MAINPID
2324

24-
# Exit code: 107 tgtd not running
25-
25+
# ExecStop exit code: 107 tgtd not running
2626

2727
[Install]
2828
WantedBy=multi-user.target

0 commit comments

Comments
 (0)